Skip to content

Stream torrents in mpv using btfs. This fork has been rewritten to remove shell script code.

License

Notifications You must be signed in to change notification settings

eNV25/mpv-btfs-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 

Repository files navigation

About

This plugin allows mpv to stream magnet links (and any other torrent identifier btfs handles) directly. It will automatically remove videos after they are finished playing.

This script will detect magnet: links and torrent files/urls ending in torrent passed to mpv by default.

One reason you might want to use this script over calling the included btplay -p mpv 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. using one of the scripts that allow appending a link from the clipboard to the playlist). It also works with the ff2mpv browser extension, so magnet links can be opened in mpv easily.

Requirements

  • btfs
  • btfsstat
  • file --brief --mime-type
  • umount
  • rmdir
  • mkdir -p
  • sleep
  • sh

Advantages Over Peerflix and Webtorrent

Peerflix and Webtorrent are both written in javascript and have to be installed using npm or external repos. Btfs on the other hand is in both the default debian and default arch repos. Makes setup a lot easier and quicker. Btfs is also a lot simpler and cleaner implementation of a bittorrent filesystem protocol utilizing the FUSE subsystem.

Btfs makes the lua script a lot simpler in implementation than the Peerflix and Webtorrent of the past.

About

Stream torrents in mpv using btfs. This fork has been rewritten to remove shell script code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%