send-to-vlc
send-to-vlc copied to clipboard
Integration with peerflix/webtorrent?
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
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.
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.