belaviyo / send-to-vlc

A Webextension to send streamble media sources to VLC (VideoLAN) media player
http://add0n.com/send-to-vlc.html
Mozilla Public License 2.0
131 stars 38 forks source link

Integration with peerflix/webtorrent? #39

Open Jerrk opened 4 years ago

Jerrk commented 4 years ago

I'm using the "send to MPV player" extension for firefox, in my windows environment i can stream a torrent/magnet by running peerflix/webtorrent "magnet/torrent url" --mpv, is there any way i can bypass the hassle of opening cmd, typing the command, and copying the link? and instead just right click the link in my browser and open it seamlessly?

https://github.com/mafintosh/peerflix https://github.com/webtorrent/webtorrent-cli

belaviyo commented 4 years ago

You have two options. Either create a batch file that gets the URL from input arguments and pass the correct arguments to the MPV then use this batch file as the executable on the options page or you can use Andy's "External Application Button" extension.

Jerrk commented 4 years ago

The first option with a .bat file sounds like the best one for my usecase, the only issue is i have no idea how to create a file with the required properties haha.. i.e calling for webtorrent when an url starts with magnet or when it ends with .torrent but then also just work as usual with youtube and twitch links.