python-ox/ox/web/piratecinema.py
2010-07-08 01:25:57 +02:00

12 lines
251 B
Python

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