use .get() and added more options
This commit is contained in:
1 parent
e1a311de40
commit
357166414c
1 file changed
+10
-7
@@ -58,14 +58,17 @@ class Couchtarter(TorrentProvider):
|
|||||||
print torrent['Size']
|
print torrent['Size']
|
||||||
print torrent['DownloadURL']
|
print torrent['DownloadURL']
|
||||||
#results.append({
|
#results.append({
|
||||||
# 'id': tryInt(result['TorrentID']),
|
# 'id': tryInt(result.get('TorrentID')),
|
||||||
# 'name': toUnicode(result['ReleaseName']),
|
# 'name': toUnicode(result.get('ReleaseName')),
|
||||||
# 'size': tryInt(self.parseSize(result['Size'])),
|
# 'url': result.get('DownloadURL'),
|
||||||
# 'url': result['DownloadURL'],
|
# 'detail_url': result.get('DetailURL'),
|
||||||
# 'detail_url': result['DetailURL'],
|
# 'size': tryInt(self.parseSize(result.get('Size'))),
|
||||||
# 'resoultion': result['Resolution'],
|
|
||||||
# 'score': host['extra_score'],
|
# 'score': host['extra_score'],
|
||||||
# 'get_more_info': result['IMDbID']
|
# 'seeders': tryInt(result.get('Seeders'),
|
||||||
|
# 'leechers': tryInt(result.get('leechers'),
|
||||||
|
# 'resoultion': result.get('Resolution'),
|
||||||
|
# 'source': result.get('Media'),
|
||||||
|
# 'get_more_info': result.get('IMDbID')
|
||||||
#})
|
#})
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in new issue
Block a user