false if torrent does not exist
This commit is contained in:
parent
09b8ec6b2c
commit
38e1b4ada6
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ def getData(id):
|
|||
"url": getUrl(id)
|
||||
}
|
||||
html = getUrlUnicode("%s%s" % (data["url"], "&filelist=1"))
|
||||
if 'No torrent with ID' in html:
|
||||
return False
|
||||
data['added'] = stripTags(parseTable(html, 'Added'))
|
||||
data['country'] = findRe(html, 'title="([\w ]*?)" border="0" width="32" height="20"')
|
||||
# data['description'] = parseTable(html, 'Description')
|
||||
|
|
Loading…
Reference in a new issue