|
|
@ -119,6 +119,7 @@ class downloadBT(Thread): |
|
|
|
self.execShell(cmd) |
|
|
|
self.execShell(cmd) |
|
|
|
|
|
|
|
|
|
|
|
def video_do(self, dir): |
|
|
|
def video_do(self, dir): |
|
|
|
|
|
|
|
|
|
|
|
return '' |
|
|
|
return '' |
|
|
|
|
|
|
|
|
|
|
|
def checkTask(self): |
|
|
|
def checkTask(self): |
|
|
@ -135,9 +136,11 @@ class downloadBT(Thread): |
|
|
|
if len(torrents) > 0: |
|
|
|
if len(torrents) > 0: |
|
|
|
for torrent in torrents: |
|
|
|
for torrent in torrents: |
|
|
|
path = torrent['save_path'] + torrent['name'] |
|
|
|
path = torrent['save_path'] + torrent['name'] |
|
|
|
|
|
|
|
self.video_do(path) |
|
|
|
print path, torrent |
|
|
|
print path, 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(), "done task!" |
|
|
|
else: |
|
|
|
else: |
|
|
|
print time.time(), "no task!" |
|
|
|
print time.time(), "no task!" |
|
|
|
time.sleep(3) |
|
|
|
time.sleep(3) |
|
|
|