diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-07-23 23:53:04 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-07-23 23:57:45 -0700 |
commit | e00c3cf99f06e6f0c097e019219760cf26d16cbe (patch) | |
tree | 3d722ffaf11760d811e8d4f26106d045d0c63126 /settings.py | |
parent | cb1c899a4570e8644dad572c7f00a3d96c844a2f (diff) | |
download | yt-local-e00c3cf99f06e6f0c097e019219760cf26d16cbe.tar.lz yt-local-e00c3cf99f06e6f0c097e019219760cf26d16cbe.tar.xz yt-local-e00c3cf99f06e6f0c097e019219760cf26d16cbe.zip |
Remove ad-hoc response saving from code, create a debug setting for fetch_url
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/settings.py b/settings.py index 2a3885f..5b9520d 100644 --- a/settings.py +++ b/settings.py @@ -24,9 +24,12 @@ default_comment_sorting = 0 # developer use to debug 403s gather_googlevideo_domains = False + +# save all responses from youtube for debugging +debugging_save_responses = False ''' exec(default_settings) -allowed_targets = set(("route_tor", "port_number", "allow_foreign_addresses", "subtitles_mode", "subtitles_language", "enable_related_videos", "enable_comments", "enable_comment_avatars", "default_comment_sorting", "gather_googlevideo_domains")) +allowed_targets = set(("route_tor", "port_number", "allow_foreign_addresses", "subtitles_mode", "subtitles_language", "enable_related_videos", "enable_comments", "enable_comment_avatars", "default_comment_sorting", "gather_googlevideo_domains", "debugging_save_responses")) def log_ignored_line(line_number, message): print("settings.txt: Ignoring line " + str(node.lineno) + " (" + message + ")") |