YT2Invidio

Point YouTube links to Invidious, Twitter to Nitter, Instagram to Bibliogram, Reddit to Teddit, Medium to Scribe

< Feedback on YT2Invidio

Question/comment

§
Posted: 16-08-2020
Edited: 16-08-2020

When invidious proxy state is disabled, could the URL of a YouTube video please not include "&local=0"?

For example, https://youtube.com/watch?v=kn-o4WqIhAg now gets turned into https://invidious.snopyta.org/watch?v=kn-o4WqIhAg&local=0 rather than just https://invidious.snopyta.org/watch?v=kn-o4WqIhAg

(now obviously when the proxy state is enabled, the URL would still include "&local=1" therefore resulting in https://invidious.snopyta.org/watch?v=kn-o4WqIhAg&local=1)

Or is the issue that, when the proxy state is enabled and you go to a video URL without the "&local=0" (such as https://invidious.snopyta.org/watch?v=kn-o4WqIhAg), you will in fact still have the proxy state enabled? If so then I guess this isn't really an issue then and you can ignore my post.

IzzySoftAuthor
§
Posted: 17-08-2020

Though the reason behind this was to keep the code simple (set up either =1 or =0, then just append the string – instead of juggling around with ?/& etc): yes, that's a side-effect. Not passing any local= parameter would mean "use instance default" – which could either be on or off.

§
Posted: 04-09-2020
Edited: 04-09-2020

I've discovered what to my non-coder eyes appears to be a discrepancy in this URL behavior.

From external websites, like reddit, the &local=0 will be appended as I described; example:
https://old.reddit.com/r/AMDNews/comments/hraxxm/introducing_amd_ryzen_threadripper_pro_processors/

Which links to: https://invidious.snopyta.org/watch?v=rQj4PJvPFeU&local=0

But when browsing the actual youtube channel on invidious, the "&local=0" is not present. So if I'm browsing on here: https://invidious.snopyta.org/channel/amd

The URL it links me to is instead the following: https://invidious.snopyta.org/watch?v=rQj4PJvPFeU

IzzySoftAuthor
§
Posted: 04-09-2020

Works as designed: When browsing on your Invidious site, links are not rewritten by the script (else the "view at YT" links would not work, for example). So the "discrepancy" you see is the original links on your preferred Invidious site. Just visit a different Invidious site (other than the one you set to "preferred"), and you'll have the "consistency" back again ;)

Post reply

Sign in to post a reply.