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)