Skip to content

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

Merged
merged 6 commits into from
Apr 10, 2020
Merged

Youtube Plugin Fix #2858

merged 6 commits into from
Apr 10, 2020

Conversation

brouxco
Copy link
Contributor

@brouxco brouxco commented Apr 2, 2020

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 and adp_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 ?

Modified the configuration schema because Youtube API changed.
@codecov
Copy link

codecov bot commented Apr 2, 2020

Codecov Report

Merging #2858 into master will increase coverage by 0.02%.
The diff coverage is 4.34%.

@@            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     

@brouxco brouxco changed the title Youtube Plugin Fix #2750 Youtube Plugin Fix Apr 3, 2020
@brouxco
Copy link
Contributor Author

brouxco commented Apr 3, 2020

Side-effect: resolves #1158

@fgietzen
Copy link

fgietzen commented Apr 3, 2020

I had a look at #2822. @fgietzen are you sure ffmpeg is installed on your system ?

Unfortunately not, I have not thought of that.

When youtube videos are protected,
the ```url``` element is replaced by ```cipher```
@beardypig beardypig requested review from back-to and beardypig April 3, 2020 13:02
@beardypig
Copy link
Member

@brouxco thanks for the contribution, code wise it looks good - I will test it out later.

Copy link
Collaborator

@back-to back-to left a 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

@back-to back-to added the plugin issue A Plugin does not work correctly label Apr 3, 2020
brouxco added 2 commits April 3, 2020 16:09
Sometimes (when the stream is live), we have ciphered urls
but the HLS manifest is not.
@brouxco brouxco requested a review from back-to April 4, 2020 14:27

if stream_info.get("stereo3d"):
name += "_3d"
name = stream_info["qualityLabel"]

streams[name] = stream
Copy link
Collaborator

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.

Copy link
Contributor Author

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?

@bastimeyer
Copy link
Member

bastimeyer commented Apr 4, 2020

You need to rebase to master, as we've migrated the CI to Github today.
nvm, I'm blind

@brouxco
Copy link
Contributor Author

brouxco commented Apr 4, 2020

I did it anyway. It looks like it's ok

@brouxco brouxco requested a review from back-to April 4, 2020 19:27
@bastimeyer

This comment has been minimized.

and used {} instead of dict()
@brouxco brouxco requested a review from back-to April 4, 2020 21:29
@brouxco
Copy link
Contributor Author

brouxco commented Apr 9, 2020

Do you want me to fix something else in my PR?

Copy link
Collaborator

@back-to back-to left a 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

@back-to back-to merged commit bb957e0 into streamlink:master Apr 10, 2020
Billy2011 pushed a commit to Billy2011/streamlink-27 that referenced this pull request May 14, 2020
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
back-to added a commit to back-to/streamlink that referenced this pull request Jun 14, 2020
Revert 'isLiveContent' from streamlink#2858
Added 'signatureCipher' for protected videos.
back-to added a commit that referenced this pull request Jun 21, 2020
Revert 'isLiveContent' from #2858
Added 'signatureCipher' for protected videos.

closes #3021
back-to added a commit to back-to/streamlink that referenced this pull request Jul 10, 2020
Revert 'isLiveContent' from streamlink#2858
Added 'signatureCipher' for protected videos.

closes streamlink#3021
mkbloke pushed a commit to mkbloke/streamlink that referenced this pull request Aug 18, 2020
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
mkbloke pushed a commit to mkbloke/streamlink that referenced this pull request Aug 18, 2020
Revert 'isLiveContent' from streamlink#2858
Added 'signatureCipher' for protected videos.

closes streamlink#3021
resiproxy pushed a commit to resiproxy/streamlink that referenced this pull request Nov 5, 2020
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
resiproxy pushed a commit to resiproxy/streamlink that referenced this pull request Nov 5, 2020
Revert 'isLiveContent' from streamlink#2858
Added 'signatureCipher' for protected videos.

closes streamlink#3021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin issue A Plugin does not work correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Youtube plugin not working with some vods Can't select 480p when playing YouTube videos
5 participants