From 38e1b4ada6f4cc365a571100eb51d78c29d2c828 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Jul 2009 18:21:20 +0200 Subject: [PATCH] false if torrent does not exist --- oxweb/karagarga.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oxweb/karagarga.py b/oxweb/karagarga.py index bfdefbb..2ee9a63 100644 --- a/oxweb/karagarga.py +++ b/oxweb/karagarga.py @@ -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')