diff options
author | Astound <kirito@disroot.org> | 2025-02-28 10:58:29 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2025-02-28 10:58:29 +0800 |
commit | 639aadd2c1fedb0342a1d113b1e30add23c733ce (patch) | |
tree | 3bd3dd272393712bc6e4c809592e071e0527bf1d /settings.py | |
parent | 7157df13cd3b02c1b45079b7170179063f392e26 (diff) | |
download | yt-local-639aadd2c1fedb0342a1d113b1e30add23c733ce.tar.lz yt-local-639aadd2c1fedb0342a1d113b1e30add23c733ce.tar.xz yt-local-639aadd2c1fedb0342a1d113b1e30add23c733ce.zip |
Remove gather_googlevideo_domains setting
This was an old experiment to collect googlevideo domains to see
if there was a pattern that could correlate to IP address to
look for workarounds for 403 errors
Can bug out if enabled and if failed to get any vidoe urls,
so remove since it is obsolete and some people are enabling it
See #218
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/settings.py b/settings.py index eb210c5..2de5efa 100644 --- a/settings.py +++ b/settings.py @@ -322,13 +322,6 @@ Archive: https://archive.ph/OZQbN''', 'comment': '', }), - ('gather_googlevideo_domains', { - 'type': bool, - 'default': False, - 'comment': '''Developer use to debug 403s''', - 'hidden': True, - }), - ('debugging_save_responses', { 'type': bool, 'default': False, @@ -338,7 +331,7 @@ Archive: https://archive.ph/OZQbN''', ('settings_version', { 'type': int, - 'default': 5, + 'default': 6, 'comment': '''Do not change, remove, or comment out this value, or else your settings may be lost or corrupted''', 'hidden': True, }), @@ -419,11 +412,20 @@ def upgrade_to_5(settings_dict): return new_settings +def upgrade_to_6(settings_dict): + new_settings = settings_dict.copy() + if 'gather_googlevideo_domains' in new_settings: + del new_settings['gather_googlevideo_domains'] + new_settings['settings_version'] = 6 + return new_settings + + upgrade_functions = { 1: upgrade_to_2, 2: upgrade_to_3, 3: upgrade_to_4, 4: upgrade_to_5, + 5: upgrade_to_6, } |