-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Youtube Plugin Fix #2858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Youtube Plugin Fix #2858
Conversation
Modified the configuration schema because Youtube API changed.
Codecov Report
@@ Coverage Diff @@
## master #2858 +/- ##
==========================================
+ Coverage 52.67% 52.69% +0.02%
==========================================
Files 251 251
Lines 15753 15741 -12
==========================================
- Hits 8298 8295 -3
+ Misses 7455 7446 -9 |
Side-effect: resolves #1158 |
When youtube videos are protected, the ```url``` element is replaced by ```cipher```
@brouxco thanks for the contribution, code wise it looks good - I will test it out later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your current version will break other stuff
there is some more old code that can be removed
here is my unfinished solution, most of it should work
https://gist.github.com/back-to/2f0a8f296eb8b2ebdbf6b7da659f6dac
Sometimes (when the stream is live), we have ciphered urls but the HLS manifest is not.
|
||
if stream_info.get("stereo3d"): | ||
name += "_3d" | ||
name = stream_info["qualityLabel"] | ||
|
||
streams[name] = stream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are also duplicates HTTP streams
not directly related to your PR, just a small bug in Streamlink.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure what you want me to do here.
Should I check if the HTTP stream is already in the streams
?
|
I did it anyway. It looks like it's ok |
This comment has been minimized.
This comment has been minimized.
and used {} instead of dict()
Do you want me to fix something else in my PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be good for now
Modified the configuration schema because Youtube API changed. Ciphered url does not necessarily means protected Sometimes (when the stream is live), we have ciphered urls but the HLS manifest is not. --- closes streamlink#1158 closes streamlink#2750 closes streamlink#2822
Revert 'isLiveContent' from streamlink#2858 Added 'signatureCipher' for protected videos.
Revert 'isLiveContent' from streamlink#2858 Added 'signatureCipher' for protected videos. closes streamlink#3021
Modified the configuration schema because Youtube API changed. Ciphered url does not necessarily means protected Sometimes (when the stream is live), we have ciphered urls but the HLS manifest is not. --- closes streamlink#1158 closes streamlink#2750 closes streamlink#2822
Revert 'isLiveContent' from streamlink#2858 Added 'signatureCipher' for protected videos. closes streamlink#3021
Modified the configuration schema because Youtube API changed. Ciphered url does not necessarily means protected Sometimes (when the stream is live), we have ciphered urls but the HLS manifest is not. --- closes streamlink#1158 closes streamlink#2750 closes streamlink#2822
Revert 'isLiveContent' from streamlink#2858 Added 'signatureCipher' for protected videos. closes streamlink#3021
Modified the configuration schema because Youtube API changed.
It works.
I kept a lot of the plugin code and got rid of the old useless code.
adp_audio
may not be accurate andadp_video
is incomplete.I had a look at #2822. @fgietzen are you sure ffmpeg is installed on your system ?
I'm not sure who is in charge of this module. Maybe @beardypig ?