Back to Blog
Plugin webtorrent brave7/2/2023 ![]() ![]() ![]() This script is a lot cleaner by comparison (though it could be better if webtorrent had a way to give more script-friendly output). Peerflix’s output is not parseable, so the peerflix version of this script had to do a bunch of extra work with lsof to figure out the location of video files, the title of video files, and the process id of peerflix (in order to kill it). Peerflix is unmaintained, and webtorrent is supposedly significantly faster. You must put this whole directory in the scripts directory not just the lua file. git clone ~/.config/mpv/scripts/webtorrent-hook). Installation InstructionsĬlone this repo into the mpv scripts directory (e.g. Webtorrent-cli does not currently provide a way to get a json list of files which is why jq and xidel are required. ![]() basic shell utilities (bash, awk, grep, nohup, tail).By default, this script will print the download speed while waiting for the video to load (see the information on the webtorrent_verbosity setting below for more options). On the other hand, you won’t be able to see both the normal webtorrent output and mpv’s output at the same time. using one of the scripts that allow appending a link from the clipboard to the playlist such as SmartCopyPaste-II).īy using this script, you can also see mpv output (which is hidden when calling webtorrent directly). See the settings heading below for more information.Īnother reason you might want to use this script is that you can start mpv with a playlist of multiple magnet links or add magnet links to the playlist of an already open mpv window (e.g. For example, it can automatically delete downloaded files, and it can remember and jump to the last video you played in a torrent file with multiple videos. This script also provides more functionality and options. if you have a shell command or keybinding to call mpv, you don’t need to handle torrents differently). One benefit is consistency of syntax (e.g. you could do this to play a torrent file that didn’t end in torrent) Comparison with using webtorrent -mpv You can also explicitly prefix the identifier with webtorrent:// to let this plugin know the path/url is a torrent (e.g. This script will detect magnet: links, torrent files/urls ending in torrent, and info hashes. It will automatically remove videos after they are finished playing (by default) and will set the title to be the name of the video. This plugin allows mpv to stream magnet links (and any other torrent identifier webtorrent-cli handles) directly. ![]()
0 Comments
Read More
Leave a Reply. |