python-ox/ox/web/oxdb.py

11 lines
207 B
Python
Raw Permalink Normal View History

2010-07-07 23:25:57 +00:00
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import ox.cache
2012-08-15 15:15:40 +00:00
def get_poster_url(id):
2010-07-07 23:25:57 +00:00
url = "http://0xdb.org/%s/poster.0xdb.jpg" % id
if ox.cache.exists(url):
return url
return ''