send-to-vlc icon indicating copy to clipboard operation
send-to-vlc copied to clipboard

Integration with peerflix/webtorrent?

Open Jerrk opened this issue 4 years ago • 2 comments

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

Jerrk avatar May 23 '20 00:05 Jerrk

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.

belaviyo avatar May 23 '20 06:05 belaviyo

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.

Jerrk avatar May 23 '20 16:05 Jerrk