mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update qbittorrent_worker.py
This commit is contained in:
@@ -159,7 +159,9 @@ class downloadBT(Thread):
|
||||
def completed(self):
|
||||
while True:
|
||||
torrents = self.qb.torrents(filter='completed')
|
||||
if len(torrents) > 0:
|
||||
tlen = len(torrents)
|
||||
print "torrents count:", tlen
|
||||
if tlen > 0:
|
||||
for torrent in torrents:
|
||||
path = torrent['save_path'] + torrent['name']
|
||||
self.video_do(path)
|
||||
|
||||
Reference in New Issue
Block a user