aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-09-05 23:44:01 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-09-05 23:44:01 -0700
commit06974ef41be942111c472b4c7bc7dd93fd87a1a8 (patch)
treef732603c465ff4fbfbf053f1b302edda7bb399ca /server.py
parentec9834801886e1e29e87c1166382d7b4020023e2 (diff)
downloadyt-local-06974ef41be942111c472b4c7bc7dd93fd87a1a8.tar.lz
yt-local-06974ef41be942111c472b4c7bc7dd93fd87a1a8.tar.xz
yt-local-06974ef41be942111c472b4c7bc7dd93fd87a1a8.zip
Don't log noisy caption requests to console
Diffstat (limited to 'server.py')
-rw-r--r--server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.py b/server.py
index 072ed22..c766012 100644
--- a/server.py
+++ b/server.py
@@ -125,7 +125,7 @@ def site_dispatch(env, start_response):
class FilteredRequestLog:
'''Don't log noisy thumbnail and avatar requests'''
- filter_re = re.compile(r'"GET /https://(i\.ytimg\.com/|www.youtube\.com/data/subscription_thumbnails/|yt3.ggpht.com/).*" 200')
+ filter_re = re.compile(r'"GET /https://(i\.ytimg\.com/|www\.youtube\.com/data/subscription_thumbnails/|yt3\.ggpht\.com/|www\.youtube\.com/api/timedtext).*" 200')
def __init__(self):
pass
def write(self, s):