bastimeyer
changed the title
plugins.youtube: move stuff from global scope
plugins.youtube: rewrite and remove API calls
By translating URLs directly, this will save at least one redirected HTTP request later on and thus reduce init time.
- Replace `_find_video_id` and `_get_stream_info` with `_get_data` Read data from embedded `ytInitialPlayerResponse` JSON Redirect to canonical URL if required (eg. embedded live streams) - Split validation schema into three and optimize: 1. playabilitystatus 2. videodetails 3. streamingdata - Refactor `_get_streams` and properly use new validation schemas Treat all streams without a URL property as protected - Refactor and reformat `_create_adaptive_streams`
Closed
2 tasks
Closed
Closed
3 tasks
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request
Jun 19, 2021…#3797) By translating URLs directly, this will save at least one redirected HTTP request later on and thus reduce init time.
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request
Jun 19, 2021- Replace `_find_video_id` and `_get_stream_info` with `_get_data` Read data from embedded `ytInitialPlayerResponse` JSON Redirect to canonical URL if required (eg. embedded live streams) - Split validation schema into three and optimize: 1. playabilitystatus 2. videodetails 3. streamingdata - Refactor `_get_streams` and properly use new validation schemas Treat all streams without a URL property as protected - Refactor and reformat `_create_adaptive_streams`
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request
Jun 19, 2021Merged