mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-11-08 23:40:39 +08:00
Fix torrent json incorrect deleted contents value
This commit is contained in:
parent
4760e7d784
commit
364082ab72
1 changed files with 5 additions and 1 deletions
|
|
@ -768,6 +768,10 @@ class Qbt:
|
|||
if "files" not in torrent_json:
|
||||
files_cleaned = [f.replace(self.config.remote_dir, '') for f in tor_files]
|
||||
torrent_json["files"] = files_cleaned
|
||||
if "deleted_contents" not in torrent_json:
|
||||
torrent_json["deleted_contents"] = info['torrents_deleted_and_contents']
|
||||
else:
|
||||
if torrent_json["deleted_contents"] is False and info['torrents_deleted_and_contents'] is True:
|
||||
torrent_json["deleted_contents"] = info['torrents_deleted_and_contents']
|
||||
logger.debug("")
|
||||
logger.debug(f"JSON: {torrent_json}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue