Giter VIP home page Giter VIP logo

webtorrent-mpv-hook's People

Contributors

mrxdst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webtorrent-mpv-hook's Issues

installation failure

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

image

this stops installing the add-on

Implementing private tracker functionality?

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!

[BUG] Cannot download without DHT

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

image

The webtorrent hook works when i enable DHT but i would prefer having it turned off.

Custom input-ipc-server setting breaks the script

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.

Allow open multiple torrents

when i Try open multiple magnets

by this way:
mpv 'magnet:...' 'magnet:...'

thrown this error
[webtorrent] WebTorrent already running. Only one instance is allowed.

Failed to load torrent

[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

Allow open multiple torrents

when i Try open multiple magnets

thrown this error
[webtorrent] WebTorrent already running. Only one instance is allowed.

Play torrents with images

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.

Add option to choose where the file is saved for each torrent

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

No video or audio streams selected. problem

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

Failed to open localhost

image

It was working fine then after removing node and reinstalling the LTS, I am getting this error.

Work with scripts that allow pasting into the playlist

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.

Allow mpv to recognize file so it can continue download if it closes

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.

Option to automatically delete files

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.

Is this supposed to happen?

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?

Select Command Prompt 4_13_2022 6_41_24 PM

Don't show splash screen

It would be nice if there was an option to not quickly flash the mpv icon with the "drop files" text.

cant "mklink" the folders

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.