GithubHelp home page GithubHelp logo

please support aria2c about metube HOT 9 CLOSED

alexta69 avatar alexta69 commented on May 18, 2024
please support aria2c

from metube.

Comments (9)

alexta69 avatar alexta69 commented on May 18, 2024 1

OK, I added aria2 to the Dockerfile, so @10362227 and @karan , if you want to use it, just set your YTDL_OPTIONS as @PikuZheng showed above, and with the mentioned limitations, it will work. stdout parsing will probably never happen, because MeTube doesn't use stdout for progress, it uses yt-dlp's internal reporting via the python module. But if you prefer to use aria2 in any case, you have the option now.

from metube.

alexta69 avatar alexta69 commented on May 18, 2024

MeTube is a GUI for yt-dlp, so all the actual downloading is performed by yt-dlp and MeTube does not have control over that. I see some mentions of aria2c in the documentation, and it appears that you can make it use aria2c via the external_downloader option (which you can set via the YTDL_OPTIONS environment variable), but whether it works or whether download progress is reported is wholly dependent on yt-dlp, and there's nothing MeTube can do in this regard.

from metube.

karan avatar karan commented on May 18, 2024

Any chance you'll reconsider this? Adding support for aria2 as a downloader (changes what's on stdout) would be huge for performance.

from metube.

alexta69 avatar alexta69 commented on May 18, 2024

If it doesn't depend on MeTube, how can I reconsider it?

from metube.

karan avatar karan commented on May 18, 2024

Well metube container will need to include the deps and it'll need to parse the output from stdout to report progress.

from metube.

alexta69 avatar alexta69 commented on May 18, 2024

I understand. I don't mind having this in MeTube then, assuming the dependencies aren't too heavy and are cross-platform (i.e. installed via apk or pip). Someone will have to take up the gauntlet and submit a PR, since I don't think I'll have the time to do it myself anytime soon. I'll reopen the issue and label it accordingly.

from metube.

PikuZheng avatar PikuZheng commented on May 18, 2024

I just added aria2 to docker (apk add aria2), and set options YTDL_OPTIONS={"external_downloader":"aria2c"}, everything seems to work.

but I don't know what the next step is. fyi

from metube.

alexta69 avatar alexta69 commented on May 18, 2024

So the stdout parsing business doesn't need changes, it just works as is? @PikuZheng , do you see the percentage progressing during the download when aria2c is used? (Is it used for sure when you enabled this option in YTDL_OPTIONS?)

from metube.

PikuZheng avatar PikuZheng commented on May 18, 2024

yes it works.

INFO:ytdl:adding https://youtu.be/BSCXnJbeLYQ
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = k-elINGi1Gtvc_WsdJ ; player = https://www.youtube.com/s/player/4c3f79c5/player_ias.vflset/en_US/base.js
INFO:ytdl:downloading 【大食い】これが私の「超ミックスフライ定食」だ。最高だろ?〜4種のタルタルソースを添えて〜【モッパン】【MUKBANG】
INFO:aiohttp.access:3.81.62.76 [13/Aug/2022:11:29:14 +0000] "POST /ytdl/add HTTP/1.1" 200 186 "-" "-"
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = WHE8HzmiU1Doc55s-M ; player = https://www.youtube.com/s/player/4c3f79c5/player_ias.vflset/en_US/base.js
[#2ff376 48KiB/428MiB(0%) CN:3 DL:96KiB ETA:1h15m30s]
[#2ff376 0.9MiB/428MiB(0%) CN:3 DL:656KiB ETA:11m6s]
[#2ff376 3.6MiB/428MiB(0%) CN:3 DL:1.4MiB ETA:4m48s]
.....
INFO:ytdl:waiting for item to download

There is only one problem, the webui doesn't know the download progress, it only knows the download start and finished.

Also according to yt-dlp's issues, downloading with aria2c may not save to subfolders.

from metube.

Related Issues (20)

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.