1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 14:27:56 +00:00

Fix to kickasstorrents search plugin

This commit is contained in:
Christophe Dumez 2011-04-10 08:30:23 +00:00
parent d9aa8cf4fd
commit fad028cfa2
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#VERSION: 1.1
#VERSION: 1.2
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
# Redistribution and use in source and binary forms, with or without
@ -47,7 +47,11 @@ class kickasstorrents(object):
while True and i<11:
results = []
json_data = retrieve_url(self.url+'/search/%s/%d/?categories[]=%s&field=seeders&sorder=desc&json=1'%(what, i, self.supported_categories[cat]))
try:
json_dict = json.loads(json_data)
except:
i += 1
continue
if json_dict['total_results'] <= 0: return
results = json_dict['list']
for r in results:

View File

@ -6,4 +6,4 @@ piratebay: 1.40
vertor: 1.3
torrentdownloads: 1.1
extratorrent: 1.1
kickasstorrents: 1.1
kickasstorrents: 1.2