diff options
author | Astound <kirito@disroot.org> | 2025-02-28 10:58:29 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2025-02-28 10:58:29 +0800 |
commit | 639aadd2c1fedb0342a1d113b1e30add23c733ce (patch) | |
tree | 3bd3dd272393712bc6e4c809592e071e0527bf1d /youtube | |
parent | 7157df13cd3b02c1b45079b7170179063f392e26 (diff) | |
download | yt-local-639aadd2c1fedb0342a1d113b1e30add23c733ce.tar.lz yt-local-639aadd2c1fedb0342a1d113b1e30add23c733ce.tar.xz yt-local-639aadd2c1fedb0342a1d113b1e30add23c733ce.zip |
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
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/watch.py | 6 |
1 files changed, 0 insertions, 6 deletions
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']): |