diff --git a/plugins/qbittorrent/workers/qbittorrent_worker.py b/plugins/qbittorrent/workers/qbittorrent_worker.py index ba1bb9bf1..20b21b8ae 100755 --- a/plugins/qbittorrent/workers/qbittorrent_worker.py +++ b/plugins/qbittorrent/workers/qbittorrent_worker.py @@ -491,10 +491,11 @@ class downloadBT(Thread): print '-------------------------add_hash---start-----------------------' pid = self.get_hashlist_id() - fid = self.get_hashfile_id(fname, m3u8_name, pid) + fid = 0 + if pid: + fid = self.get_hashfile_id(fname, m3u8_name, pid) print '-------------------------add_hash---end--------------------------' - return fid def file_arr(self, path, filters=['.DS_Store']):