Update qbittorrent_worker.py

This commit is contained in:
Mr Chen
2019-01-23 19:35:35 +08:00
parent 7124f314ac
commit 32dfc0a1ab
@@ -132,12 +132,13 @@ class downloadBT(Thread):
def completed(self):
while True:
torrents = self.qb.torrents(filter='completed')
# print torrents
for torrent in torrents:
print torrent
self.ffmpeg(
'/Users/midoks/Desktop/www/btplayer/public/video/test.mp4')
print time.time(), "no task!"
if len(torrents) > 0:
for torrent in torrents:
print torrent
# self.ffmpeg(
# '/Users/midoks/Desktop/www/btplayer/public/video/test.mp4')
else:
print time.time(), "no task!"
time.sleep(60)