From 69f481457555a78835c2676d3899c31f24d6c59d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 29 Jan 2019 00:23:34 +0800 Subject: [PATCH] update --- plugins/qbittorrent/conf/qb.sql | 5 ++--- plugins/qbittorrent/workers/qbittorrent_worker.py | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/qbittorrent/conf/qb.sql b/plugins/qbittorrent/conf/qb.sql index d7940482c..e1b06c1df 100644 --- a/plugins/qbittorrent/conf/qb.sql +++ b/plugins/qbittorrent/conf/qb.sql @@ -1,8 +1,7 @@ -CREATE TABLE `download_list` ( +CREATE TABLE `pl_hash_list` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `info_hash` varchar(40) NOT NULL, - `data_hash` varchar(32) NOT NULL, `name` varchar(255) NOT NULL, + `info_hash` varchar(40) NOT NULL, `length` bigint(20) NOT NULL, `create_time` datetime NOT NULL, PRIMARY KEY (`id`), diff --git a/plugins/qbittorrent/workers/qbittorrent_worker.py b/plugins/qbittorrent/workers/qbittorrent_worker.py index 36c992bc0..0ab94082a 100755 --- a/plugins/qbittorrent/workers/qbittorrent_worker.py +++ b/plugins/qbittorrent/workers/qbittorrent_worker.py @@ -211,6 +211,7 @@ class downloadBT(Thread): os.system(cmd_m3u8) self.execShell('chown -R ' + FILE_OWN + ':' + FILE_GROUP + ' ' + m3u8_dir) + print self.query("insert into pl_download_list (`info_hash`) values('1221')") else: print self.debug('m3u8 exists:' + tofile) # self.unlock(md5file)