From 70cb453280a748733b36946ea81866d1de4a056a Mon Sep 17 00:00:00 2001 From: Astound Date: Sun, 31 Mar 2024 04:43:11 +0800 Subject: Set 'ios' client to bypass absidue notes that blockage of the android client is collateral damage due to YouTube's war with ReVanced. Switching to iOS should keep us out of the line of fire for now: https://github.com/yt-dlp/yt-dlp/issues/9554#issuecomment-2026828421 --- youtube/watch.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'youtube/watch.py') diff --git a/youtube/watch.py b/youtube/watch.py index cd0eb53..33b2742 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -372,17 +372,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), - - # Get video URLs by spoofing as android client because its urls don't - # require decryption - # The URLs returned with WEB for videos requiring decryption - # couldn't be decrypted with the base.js from the web page for some - # reason - # https://github.com/yt-dlp/yt-dlp/issues/574#issuecomment-887171136 - - # Update 4/26/23, these URLs will randomly start returning 403 - # mid-playback and I'm not sure why - gevent.spawn(fetch_player_response, 'android_music', video_id) + gevent.spawn(fetch_player_response, 'ios', video_id) ) gevent.joinall(tasks) util.check_gevent_exceptions(*tasks) -- cgit v1.2.3