mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-09 05:18:03 +08:00
forgot dryrun..
This commit is contained in:
parent
c106ee7904
commit
5e4435d251
1 changed files with 5 additions and 5 deletions
|
@ -533,7 +533,6 @@ def tag_nohardlinks():
|
||||||
n_info += (' \n Cleanup flag set to true. NOT Deleting torrent + contents.')
|
n_info += (' \n Cleanup flag set to true. NOT Deleting torrent + contents.')
|
||||||
else:
|
else:
|
||||||
n_info += (' \n Cleanup flag set to true. Deleting torrent + contents.')
|
n_info += (' \n Cleanup flag set to true. Deleting torrent + contents.')
|
||||||
#torrent.delete(hash=torrent.hash, delete_files=True)
|
|
||||||
|
|
||||||
|
|
||||||
#loop through torrent list again for cleanup purposes
|
#loop through torrent list again for cleanup purposes
|
||||||
|
@ -542,6 +541,7 @@ def tag_nohardlinks():
|
||||||
#Double check that the content path is the same before we delete anything
|
#Double check that the content path is the same before we delete anything
|
||||||
if torrent['content_path'].replace(root_path,remote_path) == tdel_dict[torrent.name]:
|
if torrent['content_path'].replace(root_path,remote_path) == tdel_dict[torrent.name]:
|
||||||
t_del_cs += 1
|
t_del_cs += 1
|
||||||
|
if args.dry_run != 'dry_run':
|
||||||
if (os.path.exists(torrent['content_path'].replace(root_path,remote_path))):
|
if (os.path.exists(torrent['content_path'].replace(root_path,remote_path))):
|
||||||
torrent.delete(hash=torrent.hash, delete_files=True)
|
torrent.delete(hash=torrent.hash, delete_files=True)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue