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

[Request] Support links from Piped/Invidious instances #943

Open
candroid-man opened this issue May 23, 2023 · 3 comments
Open

[Request] Support links from Piped/Invidious instances #943

candroid-man opened this issue May 23, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@candroid-man
Copy link

Piped and Invidious are alternative front-ends for YouTube. They are mainly used by people that don't want to use YouTube due to privacy concerns. An example of this would look like:

/play https://piped.privacydev.net/watch?v=-xmuUbw5vyc

It would be awesome if you could implement this is a way where it uses their APIs (or just one of them) instead of YouTube directly, but even just changing the link slightly to go directly to YouTube would be easy enough. If you look at the documentation for each of the projects, you will find a list of instances officially supported by the developers of each project

Piped instances: https://github.com/TeamPiped/Piped/wiki/Instances
Invidious instances: https://docs.invidious.io/instances/

@codetheweb
Copy link
Owner

Piped and Invidious are alternative frontends. They still stream from YouTube, which can be seen in the network console of your browser:

Screenshot 2023-05-25 at 8 50 58 PM

Muse uses the same method. YouTube can't collect additional data beyond the API requests Muse makes. The only possible improvement would be to make Muse's traffic go through a VPN to prevent IP-based history correlation.

@candroid-man
Copy link
Author

Would it be possible to simply allow links from these services? I use Piped for YouTube, and it's annoying to have to go to YouTube, find the video, copy link, paste it in the bot.

I know nothing about coding, but you could maybe just say: if there is a link entered like piped.video/xyz (or a different instance), we'll just go ahead and replace it with youtube.com/xyz

@codetheweb
Copy link
Owner

Happy to accept a PR for that, it looks like we could pattern match and assume anything with /watch?v=<id> is some sort of YouTube source.

@codetheweb codetheweb reopened this May 27, 2023
@codetheweb codetheweb added enhancement New feature or request good first issue Good for newcomers labels May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants