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

Ability to only get content ID #45

Closed
TravisRoy opened this issue Oct 26, 2021 · 1 comment · Fixed by #52
Closed

Ability to only get content ID #45

TravisRoy opened this issue Oct 26, 2021 · 1 comment · Fixed by #52

Comments

@TravisRoy
Copy link

Is your feature request related to a problem? Please describe.
The ability to get just the ContentID in order to feed it to a mediaplayer (specifically Roku) with automation

Describe the solution you'd like
Getting an additional attribute with everything after the = in the youtube url

Describe alternatives you've considered
Trying to extract and run a regex somehow on the url attribute

Additional context
None

@TravisRoy
Copy link
Author

This works, but it would be nice to just have it in an attribute - "video=$(sed "s/.*=//" <<< https://www.youtube.com/watch?v=RGycqTywIrg) ; curl -X POST http://192.168.1.20:8060/launch/837\?contentId=$video"

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

Successfully merging a pull request may close this issue.

2 participants