From e00c3cf99f06e6f0c097e019219760cf26d16cbe Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 23 Jul 2019 23:53:04 -0700 Subject: Remove ad-hoc response saving from code, create a debug setting for fetch_url --- settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'settings.py') 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 + ")") -- cgit v1.2.3