Fix adding incorrect tag when not defined.

This commit is contained in:
bobokun 2021-12-07 19:43:35 -05:00 committed by GitHub
parent 15f71f8678
commit cfb242980b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()