mrxdst / webtorrent-mpv-hook Goto Github PK
View Code? Open in Web Editor NEWAdds a hook that allows mpv to stream torrents
License: The Unlicense
Adds a hook that allows mpv to stream torrents
License: The Unlicense
Is it possible to automatically delete the saved file once you've seen the video file?
My terminal is throwing me
[webtorrent] Running WebTorrent hook
No video or audio streams selected.
[webtorrent] Info hash: 45e735604c81c5cabf432bb86c1ac690a0099e48
[webtorrent] Metadata downloaded
[webtorrent] Ready for playback
and in mpv it just keeps downloading ansd stuff but the video is not loading
I use archlinux and using the latest version of mpv
Similar to webtorrent for desktop, it would be great if you happen to close mpv while the torrent is still downloading, it will recognize the file when you open mpv again and continue the download.
Or perhaps if you click on the magnet lick again it will just pick up where it left off.
Rn it seems to start the download all over again.
Is there anything i could write on the webtorrent.conf in order to do that? I'm using windows
tested as both root, normal user and with --global and without.
it is having issues with this
git ls-remote ssh://[email protected]/feross/http-node.git
this stops installing the add-on
Since an update or something a few weeks ago this seems to no longer work.
when i Try open multiple magnets
by this way:
mpv 'magnet:...' 'magnet:...'
thrown this error
[webtorrent] WebTorrent already running. Only one instance is allowed.
mklink : The term 'mklink' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mklink "%APPDATA%\mpv\scripts\webtorrent.js" "C:\Users\USER\AppData\R ...
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (mklink:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
tried too in bash but it didnt help
Hi, I have tried to run the webtorrent hook without dht and utp (my qbit setup works flawless with those both turned off) but instead of download i ended up waiting for torrent to start downloading that never happened
Config:
# Path to save downloaded files in.
path=C:\Users\mypc\Desktop\
# Maximum number of connections.
maxConns=1000
# Port to use for webtorrent web-server.
# If it's already in use a random port will be chosen instead.
port=8099
# Enable μTP support.
utp=no
# Enable DHT.
dht=no
The webtorrent hook works when i enable DHT but i would prefer having it turned off.
after using node
I keep getting errors like:
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
It was until i installed git, everything was fine, but npm wasn't installing webtorrent-mpv-hook before
Hello, can I host it on my VPS and webtorrent-mpv-hook client will use my server api to play torrent. basically server-client model
when i Try open multiple magnets
thrown this error
[webtorrent] WebTorrent already running. Only one instance is allowed.
Mplug is like a package manager but for mpv scripts.
Please add your script there (if already not there) and also installation instructions in manifest - https://github.com/Nudin/mpv-script-directory/blob/master/HOWTO_ADD_INSTALL_INSTRUCTIONS.md
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.
Hello, I am the author of mpv-peerflix-hook, mpv-webtorrent-hook, and mpv-btfs-stream. There have been at least 7 versions of mpv scripts for streaming torrents, and there's not a clear best script for every use case. There are a few features I'm used to that are missing from your plugin, so I will make issues for them. Hopefully your plugin can be the clear choice then. I'd like to use your plugin and deprecate my own since yours is the right way to do things (use webtorrent library instead of a hack to parse webtorrent-cli output). btfs-stream isn't hacky and supports more functionality, but it is much slower than webtorrent.
The first issue: it would be nice if there was a setting to automatically delete the torrent files after closing mpv. Alternatively, if possible it would also be nice if there was an option to keep seeding even after closing mpv (not sure what the current behavior is; not sure if it is possible to detach what webtorrent is doing from mpv or if seeding has to stop when closing mpv). The user would manually cleanup later. Maybe running the commandline program webtorrent-mpv-hook
with some flag could delete all torrent files and stop seeding.
There are several plugins that allow pasting a path/url into the playlist (e.g. this one). Pasting a torrent identifier into the playlist does not seem to normally work with this plugin (on loading, it ends up being removed from the playlist). My scripts support this functionality (on load they will check if the filename is a torrent and run btfs or webtorrent). I often find it nicer to just hit one key instead of restarting mpv.
Was wondering if its possible to implement a functionality so private torrents work too. Avistaz or PrivateHD don't download anything, probably due to the fact that the header is detected as a banned client. I'm no programmer so I don't really know. Would be cool if this could be implemented!
I am using custom input-ipc-server settings.
input-ipc-server=\\.\pipe\mpvsocket
I get this error.
Error: connect ENOENT \\.\pipe\\.\pipe\mpvsocket
Immersive (another script that I use) also apparently depends on these settings but it works fine.
It would be nice if this plugin ran expand-path
on the path setting, so that mpv path abbreviations (including ~/
) will work. ~/
does not seem to work currently.
For example if I'm torrenting a whole season of a show I can choose which episodes are downloaded.
If you want a good example webtorrent desktop has this feature.
mp.options.read_options(options);
should be sufficient?
I was wondering whether it was normal for the terminal to display the lines [file] Cannot open file 'magnet:?xt=urn:btih:eb99199d9adbb77661a436ce4716e0b05913a124': Invalid argument
and Failed to open magnet:?xt=urn:btih:eb99199d9adbb77661a436ce4716e0b05913a124.
every time I try to play a torrent with mpv?
It would be nice, if we can have add download/upload speed limits in config!
[input] Command 'loop-file=inf' not found.
[input] Command was defined at mpv/mpv/input.conf
2.
Can't load unknown script: mpv/mpv/scripts/win-he
per.vbs
Cannot find main.* for any supported scripting backend in:(x8
)/mpv/mpv/scripts/modules
[assrt]
[assrt] stack traceback:
[assrt] [string "/mpv/mpv/scripts..."]:26:
in main chunk
[assrt] [C]: at 0x013f6032f0
[assrt] [C]: at 0x013f601570
[assrt] Lua error: [string "/mpv/mpv/scripts..."]:
6: module 'modules.AssFormat' not found:
[assrt] no field package.preload['modules.AssFormat']
[assrt] no file ':mpv/mpv/scripts/modules\A
sFormat.lua'
[assrt] no file '\mpv\lua\modules\AssForma
.lua'
[assrt] no file '\mpv\lua\modules\AssForma
\init.lua'
[assrt] no file '\mpv\modules\AssFormat.dl
'
[assrt] no file 'mpv\loadall.dll'
[assrt] no file '\mpv\modules.dll'
[assrt] no file '\mpv\loadall.dll'
[file] Cannot open file 'magnet:': Invalid argument
Failed to open
[webtorrent] Running WebTorrent hook
[webtorrent] Failed to get node script path
I also got the same error with:
Failed to recognize file format.
added when trying to load a torrent link from archive.org
It would be nice if there was an option to not quickly flash the mpv icon with the "drop files" text.
This is the only major feature that is missing for me, I know I can choose to save ALL DOWNLOADED FILES to path=./Videos for example, however I have 2 subfolders for movies and shows and another subfolder in each of those for anime. When torrenting a lot it can get tiresome to keep moving (large) files around. So I was wondering if this feature could be implemented?
Maybe these 2 scripts could help:
https://github.com/CogentRedTester/mpv-file-browser
https://github.com/jonniek/mpv-playlistmanager
it would be nice to have such an option
It may sound selfish but not everyone has unlimited wifi atleast not me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.