Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plugins.youtube: translate embed_live URLs#3804

Merged
back-to merged 1 commit into
streamlink:masterfrom
bastimeyer:plugins/youtube/translate-more-urls
Jun 20, 2021
Merged

plugins.youtube: translate embed_live URLs#3804
back-to merged 1 commit into
streamlink:masterfrom
bastimeyer:plugins/youtube/translate-more-urls

Conversation

@bastimeyer

@bastimeyer bastimeyer commented Jun 19, 2021

Copy link
Copy Markdown
Member
  • translate embedded live-channel URLs to avoid unnecessary HTTP
    redirections and having to find the canonical URL in the metadata
  • add URL translation tests
  • fix plugins can_handle_url pytest collection function

In regards to #3797 (comment), channel URLs like youtube.com/CHANNELNAME or youtube.com/channel/CHANNELID could be translated to youtube.com/CHANNELNAME/live or youtube.com/channel/CHANNELID/live respectively, but that would also require a change of the logic when the embedded data is missing, eg. when a channel is not live, and it'd have to always raise a NoStreamsError instead of a PluginError for a more graceful error message, which would be misleading in some cases.

@bastimeyer bastimeyer added the plugin enhancement A new feature for a working Plugin label Jun 19, 2021
- translate embedded live-channel URLs to avoid unnecessary HTTP
  redirections and having to find the canonical URL in the metadata
- add URL translation tests
- fix plugins can_handle_url pytest collection function
@bastimeyer bastimeyer force-pushed the plugins/youtube/translate-more-urls branch from 5498800 to c53181f Compare June 19, 2021 21:32
@back-to back-to merged commit f7b6f15 into streamlink:master Jun 20, 2021
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Jun 20, 2021
- translate embedded live-channel URLs to avoid unnecessary HTTP
  redirections and having to find the canonical URL in the metadata
- add URL translation tests
- fix plugins can_handle_url pytest collection function
@bastimeyer bastimeyer deleted the plugins/youtube/translate-more-urls branch June 20, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin enhancement A new feature for a working Plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants