mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-11-08 07:20:59 +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,7 +768,11 @@ class Qbt:
|
||||||
if "files" not in torrent_json:
|
if "files" not in torrent_json:
|
||||||
files_cleaned = [f.replace(self.config.remote_dir, '') for f in tor_files]
|
files_cleaned = [f.replace(self.config.remote_dir, '') for f in tor_files]
|
||||||
torrent_json["files"] = files_cleaned
|
torrent_json["files"] = files_cleaned
|
||||||
torrent_json["deleted_contents"] = info['torrents_deleted_and_contents']
|
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("")
|
||||||
logger.debug(f"JSON: {torrent_json}")
|
logger.debug(f"JSON: {torrent_json}")
|
||||||
util.save_json(torrent_json, torrent_json_file)
|
util.save_json(torrent_json, torrent_json_file)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue