mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
TorrentDownloads plugin performance improvement
This commit is contained in:
parent
76a22fabcd
commit
1596dc5206
@ -1,4 +1,4 @@
|
|||||||
#VERSION: 1.04
|
#VERSION: 1.05
|
||||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -72,6 +72,8 @@ class torrentdownloads(object):
|
|||||||
self.current_item = None
|
self.current_item = None
|
||||||
self.results = results
|
self.results = results
|
||||||
self.what = what.upper().split('+')
|
self.what = what.upper().split('+')
|
||||||
|
if len(self.what) == 0:
|
||||||
|
self.what = None
|
||||||
|
|
||||||
def start_a(self, attr):
|
def start_a(self, attr):
|
||||||
params = dict(attr)
|
params = dict(attr)
|
||||||
@ -113,8 +115,9 @@ class torrentdownloads(object):
|
|||||||
self.current_item['leech'] = 0
|
self.current_item['leech'] = 0
|
||||||
# Search should use AND operator as a default
|
# Search should use AND operator as a default
|
||||||
tmp = self.current_item['name'].upper();
|
tmp = self.current_item['name'].upper();
|
||||||
for w in self.what:
|
if self.what is not None:
|
||||||
if tmp.find(w) < 0: return
|
for w in self.what:
|
||||||
|
if tmp.find(w) < 0: return
|
||||||
prettyPrinter(self.current_item)
|
prettyPrinter(self.current_item)
|
||||||
self.results.append('a')
|
self.results.append('a')
|
||||||
|
|
||||||
|
@ -4,4 +4,4 @@ btjunkie: 2.21
|
|||||||
mininova: 1.40
|
mininova: 1.40
|
||||||
piratebay: 1.30
|
piratebay: 1.30
|
||||||
vertor: 1.0
|
vertor: 1.0
|
||||||
torrentdownloads: 1.04
|
torrentdownloads: 1.05
|
||||||
|
Loading…
x
Reference in New Issue
Block a user