muse icon indicating copy to clipboard operation
muse copied to clipboard

[Request] Support links from Piped/Invidious instances

Open candroid-man opened this issue 2 years ago • 3 comments

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/

candroid-man avatar May 23 '23 21:05 candroid-man

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.

codetheweb avatar May 26 '23 03:05 codetheweb

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

candroid-man avatar May 26 '23 04:05 candroid-man

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 avatar May 27 '23 02:05 codetheweb