Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional trigger to activate --external-downloader #4949

Open
5 tasks done
fnfontana opened this issue Sep 17, 2022 · 0 comments
Open
5 tasks done

Conditional trigger to activate --external-downloader #4949

fnfontana opened this issue Sep 17, 2022 · 0 comments
Labels
enhancement New feature or request triage Untriaged issue

Comments

@fnfontana
Copy link

fnfontana commented Sep 17, 2022

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

Provide a description that is worded well enough to be understood

Hello,

I Would like to suggest a new feature for yt-dlp, if accomplishable or viable to be done.
After made this question on r/youtube-dl, seems to me that this is not possible yet.

The context is:
When using --external-downloader aria2c --external-downloader-arguments "-x 16 -k 1M -s 32" for large files like videos, the download speeds increases greatly, but for small files like audio, it becomes slower compared to the native yt-dlp downloader.

What do I have in mind:
The idea is to implement a new flag, for example --external-downloader-trigger 50M and yt-dlp would use aria2c as external downloader only if the desired file to be downloaded was greater than 50mb; otherwise it would use its native downloader.

Possible use cases:
This is useful in the scenario of user automation, like a batch or bash script for example, or mentioning my use case, I'm using AutoHotkey to download videos and audios from YouTube when pressing a key combination.

Additional information:
It is important to consider that despite it can be done programmatically at the script, most people are not so good at scripting like professional devs are.
I think it would be necessary to check the size of the audio or video at the desired format to be downloaded, this seems complex to me.
So, implementing this conditional trigger can be challenging for people who are laymen in programming. If yt-dlp could bring it to us natively, it would be a great addition to its features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

1 participant