From 0094d4e573288921e974a3aa557fff4c05e8a6c5 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 23 Jan 2019 19:55:21 +0800 Subject: [PATCH] Update qbittorrent_worker.py --- plugins/qbittorrent/workers/qbittorrent_worker.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/qbittorrent/workers/qbittorrent_worker.py b/plugins/qbittorrent/workers/qbittorrent_worker.py index 6def944fe..5b223647c 100755 --- a/plugins/qbittorrent/workers/qbittorrent_worker.py +++ b/plugins/qbittorrent/workers/qbittorrent_worker.py @@ -105,7 +105,6 @@ class downloadBT(Thread): return False def ffmpeg(self, file=''): - #vfile = '/Users/midoks/Desktop/www/btplayer/public/video/test.mp4' md5file = self.md5(file) m3u8_dir = FILE_TO + '/m3u8/' + md5file os.system('mkdir -p ' + m3u8_dir) @@ -116,10 +115,11 @@ class downloadBT(Thread): ' -c copy -map 0 -f segment -segment_list ' + \ m3u8_file + ' -segment_time 5 ' + tofile print cmd - self.execShell(cmd) + print self.execShell(cmd) def video_do(self, dir): + # self.ffmpeg('/Users/midoks/Desktop/www/btplayer/public/video/test.mp4') return '' def checkTask(self): @@ -137,9 +137,7 @@ class downloadBT(Thread): for torrent in torrents: path = torrent['save_path'] + torrent['name'] self.video_do(path) - print path, torrent - # self.ffmpeg( - # '/Users/midoks/Desktop/www/btplayer/public/video/test.mp4') + print torrent print time.time(), "done task!" else: print time.time(), "no task!"