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:
@@ -132,12 +132,13 @@ class downloadBT(Thread):
|
|||||||
def completed(self):
|
def completed(self):
|
||||||
while True:
|
while True:
|
||||||
torrents = self.qb.torrents(filter='completed')
|
torrents = self.qb.torrents(filter='completed')
|
||||||
# print torrents
|
if len(torrents) > 0:
|
||||||
for torrent in torrents:
|
for torrent in torrents:
|
||||||
print torrent
|
print torrent
|
||||||
self.ffmpeg(
|
# self.ffmpeg(
|
||||||
'/Users/midoks/Desktop/www/btplayer/public/video/test.mp4')
|
# '/Users/midoks/Desktop/www/btplayer/public/video/test.mp4')
|
||||||
print time.time(), "no task!"
|
else:
|
||||||
|
print time.time(), "no task!"
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user