pull/109/head
Mr Chen 6 years ago
parent 8b62b1ecdd
commit 4a564593e5
  1. 6
      plugins/qbittorrent/index.py
  2. 3
      plugins/qbittorrent/workers/qbittorrent_worker.py

@ -81,9 +81,9 @@ def getRunLog():
def initDreplace():
ddir = getServerDir() + '/workers'
if not os.path.exists(ddir):
sdir = getPluginDir() + '/workers'
public.execShell('cp -rf ' + sdir + ' ' + getServerDir())
# if not os.path.exists(ddir):
sdir = getPluginDir() + '/workers'
public.execShell('cp -rf ' + sdir + ' ' + getServerDir())
cfg = getServerDir() + '/qb.conf'
if not os.path.exists(cfg):

@ -134,7 +134,8 @@ class downloadBT(Thread):
torrents = self.qb.torrents(filter='completed')
if len(torrents) > 0:
for torrent in torrents:
print torrent
path = torrent['save_path'] + torrent['name']
print path, torrent
# self.ffmpeg(
# '/Users/midoks/Desktop/www/btplayer/public/video/test.mp4')
else:

Loading…
Cancel
Save