diff options
author | 2025-03-29 12:35:50 +0530 | |
---|---|---|
committer | 2025-03-29 12:35:50 +0530 | |
commit | 3fbaff704571293be83e2b56d36b761f42cce1ec (patch) | |
tree | 38ff650730359360c21f296b4ad5c47f01f20c30 /settings.py | |
parent | a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd (diff) | |
download | yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.tar.gz yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.tar.bz2 yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.zip |
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/settings.py b/settings.py index eb210c5..36ed141 100644 --- a/settings.py +++ b/settings.py @@ -61,7 +61,7 @@ SETTINGS_INFO = collections.OrderedDict([ ('allow_foreign_addresses', { 'type': bool, 'default': False, - 'comment': '''This will allow others to connect to your YT Local instance as a website. + 'comment': '''This will allow others to connect to your Biswa's Youtube instance as a website. For security reasons, enabling this is not recommended.''', 'hidden': True, 'category': 'network', @@ -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, } |