censor url

This commit is contained in:
bobokun 2021-12-07 20:19:24 -05:00 committed by GitHub
parent cfb242980b
commit 1c7f0c45d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,6 @@ def get_tags(urls):
return (new_tag,trunc_val(url, '/'),max_ratio,max_seeding_time,limit_upload_speed) return (new_tag,trunc_val(url, '/'),max_ratio,max_seeding_time,limit_upload_speed)
else: else:
return (new_tag,url,max_ratio,max_seeding_time,limit_upload_speed) 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 = '' new_tag = ''
max_ratio = '' max_ratio = ''
max_seeding_time = '' max_seeding_time = ''
@ -251,6 +250,7 @@ def get_tags(urls):
except IndexError as e: except IndexError as e:
logger.debug(f"Tracker Urls:{urls}") logger.debug(f"Tracker Urls:{urls}")
logger.debug(e) logger.debug(e)
logger.warning(f'No tags matched for {url}. Please check your config.yml file. Setting tag to NULL')
return (new_tag,url,max_ratio,max_seeding_time,limit_upload_speed) return (new_tag,url,max_ratio,max_seeding_time,limit_upload_speed)