mrxdst/webtorrent-mpv-hook

Play torrents with images

noctuid opened this issue · 3 comments

I'm not sure if webtorrent can support this. With btfs-stream, it is possible to open a torrent that contains images or an archive of images (though it is necessary to wait for the entire thing to be downloaded if it is an archive). The screen seems to just stay black currently for this plugin if I try to open a torrent with a zip containing images.

Every file in the torrent gets added to a new playlist. If mpv can play it, it's played.
Torrents containing plain images (not zipped) works.

Good to know it works with plain images. This is a pretty minor issue since a torrent of a zip has to be fully downloaded before viewing anyway, but do you have any idea why it wouldn't work for a zip? Mpv works when called directly with a zip.

I just created a new torrent containing a zip with images and it worked fine. It also worked with a torrent containing multiple zips.
Maybe it's something with your config. Try starting mpv without any config:
mpv --no-config --script=~/.config/mpv/scripts/webtorrent.js <magnet-uri>

Either way, I'm closing this as I won't fix it even if it turns out to be broken somehow.