bastimeyer · GitHub

@bastimeyer bastimeyer changed the title plugins.youtube: move stuff from global scope plugins.youtube: rewrite and remove API calls

Jun 17, 2021
- move stuff from global stuff to plugin class
- remove unneeded oembed metadata stuff
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`
This fixes parameters in the consent-submit-redirection when a URL with
an ampersand was set.

@bastimeyer

Closed

2 tasks

Closed

@back-to

Closed

3 tasks

@bastimeyer

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, 2021
This fixes parameters in the consent-submit-redirection when a URL with
an ampersand was set.

Merged

Closed

3 tasks

back-to added a commit to back-to/streamlink that referenced this pull request

Jul 17, 2021

Merged

back-to added a commit that referenced this pull request

Jul 20, 2021
- Revert `isLiveContent` from #3797 use `isLive`
- Added more log details for `videoDetails`
basically same as #3026
closes #3872

Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request

Jul 22, 2021

Read the original on github.com ↗