diff options
Diffstat (limited to 'youtube/watch.py')
-rw-r--r-- | youtube/watch.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/youtube/watch.py b/youtube/watch.py index 09a3b76..e2762cb 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -343,7 +343,6 @@ def _add_to_error(info, key, additional_message): def fetch_player_response(client, video_id): return util.call_youtube_api(client, 'player', { 'videoId': video_id, - 'params': 'CgIIAQ==', }) @@ -372,7 +371,7 @@ def extract_info(video_id, use_invidious, playlist_id=None, index=None): tasks = ( # Get video metadata from here gevent.spawn(fetch_watch_page_info, video_id, playlist_id, index), - gevent.spawn(fetch_player_response, 'android', video_id) + gevent.spawn(fetch_player_response, 'android_vr', video_id) ) gevent.joinall(tasks) util.check_gevent_exceptions(*tasks) @@ -650,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']): |