mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2024-09-20 15:26:02 +08:00
Bug Fix: Force ATM causing issue with category
This commit is contained in:
parent
15075cac07
commit
3cc81bd74d
|
@ -80,7 +80,7 @@ class Qbt:
|
|||
is_complete = False
|
||||
msg = None
|
||||
status = None
|
||||
if torrent.auto_tmm is False and settings['force_auto_tmm'] and not dry_run:
|
||||
if torrent.auto_tmm is False and settings['force_auto_tmm'] and torrent.category != '' and not dry_run:
|
||||
torrent.set_auto_management(True)
|
||||
try:
|
||||
torrent_name = torrent.name
|
||||
|
@ -152,6 +152,8 @@ class Qbt:
|
|||
if not dry_run:
|
||||
try:
|
||||
torrent.set_category(category=new_cat)
|
||||
if torrent.auto_tmm is False and self.config.settings['force_auto_tmm']:
|
||||
torrent.set_auto_management(True)
|
||||
except Conflict409Error:
|
||||
e = print_line(f'Existing category "{new_cat}" not found for save path {torrent.save_path}, category will be created.', loglevel)
|
||||
self.config.notify(e, 'Update Category', False)
|
||||
|
|
Loading…
Reference in a new issue