Skip to content

Conversation

@MrSol0
Copy link

@MrSol0 MrSol0 commented Jun 3, 2022

Youtube has once again changed their platform so it no longer supports video resume for most user agents, however roku user agent seems to still work fine with no problems similar to the old user agent.

Youtube has once again changed their platform so it no longer supports video resume for most user agents, however roku user agent seems to still work fine with no problems similar to the old user agent.
@patrikjuvonen patrikjuvonen added the bug Something isn't working label Jun 3, 2022
@ffsPLASMA
Copy link
Contributor

Wouldn't it be much more beneficial to set the browser user agent to a custom one via lua in conjunction with setBrowserProperty rather than hardcoding it?

@patrikjuvonen
Copy link
Contributor

patrikjuvonen commented Jun 5, 2022

Wouldn't it be much more beneficial to set the browser user agent to a custom one via lua in conjunction with setBrowserProperty rather than hardcoding it?

It's set by MTA to respect the purpose of user agent header. It is used occasionally by ISPs and services to better understand and route traffic. There isn't any reason to use any other custom user agent than what MTA provides. In this case a part is added which is needed to workaround automatic routing on YouTube. There may be other issues that we don't realize by allowing custom user agents. So for now, no, we're not going to change this behavior.

I'll also need to ask people to stop discussing this in this pull request, because it is off-topic. Please talk over in a new issue or discussion.

// Allow YouTube TV to work (#1162)
if (domain == "www.youtube.com" && UTF16ToMbUTF8(urlParts.path.str) == "/tv")
iter->second = iter->second.ToString() + "; SMART-TV; Tizen 4.0";
iter->second = iter->second.ToString() + "; Roku 3/7.0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using "Roku 3/7.0" is not enough, so I tried it out and found that we could add "Wireless" and it works.

Suggested change
iter->second = iter->second.ToString() + "; Roku 3/7.0";
iter->second = iter->second.ToString() + "; Roku 3/7.0, Wireless";

Copy link
Member

@lopezloo lopezloo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current user agent works for me. Please provide more information about this issue.

@lopezloo lopezloo added the feedback Further information is requested label Jul 5, 2022
@MrSol0 MrSol0 closed this Jul 6, 2022
@MrSol0
Copy link
Author

MrSol0 commented Jul 6, 2022

Current user agent works for me. Please provide more information about this issue.

Youtube has restored their old system, the resume is now back again, however i still think "Roku 3/7.0" is better because it has no login page when you resume or watch videos and even no ads!

@lopezloo
Copy link
Member

lopezloo commented Jul 6, 2022

Current user agent works for me. Please provide more information about this issue.

Youtube has restored their old system, the resume is now back again, however i still think "Roku 3/7.0" is better because it has no login page when you resume or watch videos and even no ads!

I still see ads with Roku 3/7.0 UA. What do you mean by saying "resuming videos" and "login page"?

If I visit video URL directly, ex. this one:

https://www.youtube.com/tv#/watch?mode=transport&v=jofNR_WkoCE

I'm getting "who's watching?" page on all user agents, which can be hidden by injecting mouse click.

@MrSol0
Copy link
Author

MrSol0 commented Jul 6, 2022

https://www.youtube.com/tv#/watch?mode=transport&v=jofNR_WkoCE

i have tested https://www.youtube.com/tv#/watch?v=jofNR_WkoCE with user agent as Roku 3/7.0 in chrome and i don't see the who's watching page even with US & UK vpn's, and i mean by resume video this https://www.youtube.com/tv#/watch?v=jofNR_WkoCE&resume&t=120 as an example, it tells you who's watching with other user agents but not with Roku

@MrSol0 MrSol0 reopened this Jul 6, 2022
@lopezloo
Copy link
Member

lopezloo commented Jul 6, 2022

I'm getting this login page even with Roku 3/7.0, Wireless UA. Without Wireless I got redirect to desktop version.

@lopezloo lopezloo changed the title Updating User agent for youtube.com/tv Update user agent for youtube.com/tv Jul 7, 2022
@MrSol0
Copy link
Author

MrSol0 commented Jul 7, 2022

I'm getting this login page even with Roku 3/7.0, Wireless UA. Without Wireless I got redirect to desktop version.

It seems like you are using the wrong user agent changer, try use user-agent changer and manager which is a chrome extension. i would also like anyone else to confirm this.

@Lpsd
Copy link
Member

Lpsd commented Jul 7, 2022

I'm getting this login page even with Roku 3/7.0, Wireless UA. Without Wireless I got redirect to desktop version.

It seems like you are using the wrong user agent changer, try use user-agent changer and manager which is a chrome extension. i would also like anyone else to confirm this.

Why are you using a Chrome extension for testing this? How can you be sure the request details are exactly the same as in MTA? If you've already accounted for this can you prove it?

@patrikjuvonen
Copy link
Contributor

Testing must be done through the MTA client, not external browser.

@Lpsd
Copy link
Member

Lpsd commented Jul 7, 2022

It's also worth noting that YouTube generally rolls out their updates/changes slowly, so different users may have different experiences while performing the same actions. This could be down to browser, device, location, IP, account, and many other variables.

@lopezloo lopezloo closed this Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feedback Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants