use .get() and added more options

This commit is contained in:
Joel Kåberg committed 2013-11-21 22:20:45 +01:00
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: