From 639aadd2c1fedb0342a1d113b1e30add23c733ce Mon Sep 17 00:00:00 2001 From: Astound Date: Fri, 28 Feb 2025 10:58:29 +0800 Subject: 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 --- youtube/watch.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'youtube/watch.py') diff --git a/youtube/watch.py b/youtube/watch.py index 269e9e3..e2762cb 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -649,12 +649,6 @@ def get_watch_page(video_id=None): '/videoplayback', '/videoplayback/name/' + filename) - if settings.gather_googlevideo_domains: - with open(os.path.join(settings.data_dir, 'googlevideo-domains.txt'), 'a+', encoding='utf-8') as f: - url = info['formats'][0]['url'] - subdomain = url[0:url.find(".googlevideo.com")] - f.write(subdomain + "\n") - download_formats = [] for format in (info['formats'] + info['hls_formats']): -- cgit v1.2.3