Skip to content
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

Support for authenticated sessions #6

Open
rbclark opened this issue Sep 15, 2019 · 1 comment
Open

Support for authenticated sessions #6

rbclark opened this issue Sep 15, 2019 · 1 comment

Comments

@rbclark
Copy link

rbclark commented Sep 15, 2019

First up, thank you for implementing this, it was immensely helpful for the problem I was trying to solve, which was to get Youtube TV working with chromecast. It turns out Youtube and Youtube TV use the exact same casting API. I only had to make 4 extremely minor changes and I was able to support casting to Youtube TV:

  1. Add a dict of cookies consisting of my youtube APISID, HSID, SAPISID, SID, SSID cookies. Very similar to https://github.com/yakyak/hangupsjs#cookies who are trying to do a similar thing (auth to a google service)
  2. Change the YOUTUBE_BASE_URL = "https://tv.youtube.com/".
  3. Add "theme": "up" to my BIND_DATA since the bind will fail with a theme error without it.
  4. Pass CURRENT_TIME=-1 to cause the video to always start at LIVE.

Is there any chance you would consider any of these changes as a PR? If so I'll need to most likely figure out a cleaner way to support grabbing the cookies for a better user experience.

@ur1katz
Copy link
Owner

ur1katz commented Sep 16, 2019

Thanks for the PR!
It looks simple enough, I left you some comments.
When you find a clean way of grabbing cookies i think the best place for it is https://github.com/ur1katz/CastTube-Scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants