mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-24 21:25:05 +08:00
Fix adding incorrect tag when not defined.
This commit is contained in:
parent
15f71f8678
commit
cfb242980b
1 changed files with 10 additions and 1 deletions
|
|
@ -242,6 +242,15 @@ def get_tags(urls):
|
|||
else:
|
||||
return (new_tag,url,max_ratio,max_seeding_time,limit_upload_speed)
|
||||
logger.warning(f'No tags matched for {url}. Please check your config.yml file. Setting tag to NULL')
|
||||
new_tag = ''
|
||||
max_ratio = ''
|
||||
max_seeding_time = ''
|
||||
limit_upload_speed = ''
|
||||
try:
|
||||
url = trunc_val(urls[0], '/')
|
||||
except IndexError as e:
|
||||
logger.debug(f"Tracker Urls:{urls}")
|
||||
logger.debug(e)
|
||||
return (new_tag,url,max_ratio,max_seeding_time,limit_upload_speed)
|
||||
|
||||
|
||||
|
|
@ -996,4 +1005,4 @@ if __name__ == '__main__':
|
|||
time.sleep(1)
|
||||
end()
|
||||
except KeyboardInterrupt:
|
||||
end()
|
||||
end()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue