-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
use web screen embed for fixing potoken functionality #4923
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This reverts commit de918b9. The code doesn't work as expected. Reverting
I reverted the commit. It doesn't work as expected. The issue being that WEB screen embed doesn't provide microformat info so this fails to work. Even WEB on a blocked IP doesn't provide it either so we will have to use next endpoint in order to fetch all the information that we previously extracted from microformat (description, publishedDate and more). |
Someone on matrix said that embed www.google.com does not work for all videos. Example for https://www.youtube.com/watch?v=0RyInjfgNc4 But it's a tradeoff until we can find a way to have WEB working again. |
@unixfox indeed, not all videos working on embed player. So i researched to find a working alternative.. please see it here LuanRT/YouTube.js#748 (comment) |
* use web screen embed for fixing potoken functionality * use web screen embed only for getting streamingData + disable tv screen on po_token
Helps for #4734
Since potoken is generated from a YouTube embed page, YouTube has started to enforce this token on exclusive usage of WEB_EMBEDDED_PLAYER client.
Thanks to
"embedUrl":"https://www.google.com/"
, this allows to have WEB_EMBEDDED_PLAYER working even on video that disallowed the embedding. As tested on https://www.youtube.com/watch?v=JfJYHfrOGgQI did found this parameter by entering the youtube video url on google.com and seeing that it worked there but not on the youtube embed page.
This also deactivates TVHTML5_SIMPLY_EMBEDDED_PLAYER when po_token is configured, since this doesn't work with that client.