python-oxweb/oxweb/piratecinema.py

13 lines
260 B
Python
Raw Normal View History

2008-07-29 17:04:23 +00:00
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import oxlib.cache
from oxlib.cache import exists
2008-07-29 17:04:23 +00:00
def getPosterUrl(id):
url = "http://piratecinema.org/posters/%s/%s.jpg" % (id[:4], id)
if oxlib.cache.exists(url):
return url
return ''