Open bash-hike opened 4 years ago
You can pass arguments to external downloader with --external-downloader-args
. However aria2c doesn't have some min or max file feature. --min-filesize
won't work when used with external downloader as youtube-dl won't have a clue how big the file is. There could be a workaround by checking the file(s) metadata (ContentRange) but that only works if this metadata is returned by the server if you probe the download. Also if there is a playlist file like m3u8 or so there will be quite some smaller files anyway.
Another workaround would be to delete the file after it's downloaded and is below threshold. But this is most likely not what you want and could be better implemented in some script outside of youtube-dl.
Putting it that way certainly makes some sense of it, but perhaps there should be a warning logged when using --min-filesize
in conjuncture with --external-downloader-args
, as many users will not grasp these technicalities.
Checklist
Verbose log
Description
The
--min-filesize
flag gets ignored if--external-downloader
is given too. This is true for at least aria2 as the external downloader, and has been confirmed on multiple systems. The order in which arguments are passed does not matter (as it should be). And it is just the filesize selection argument that gets ignored, passing something like--min-views 10000000000
skips the download.Another bug that is probably related is getting thumbnails.
--min-views 100000000 --write-thumbnail
skips the video, and hence, doesn't download the thumbnail. However,--min-filesize 1000M --write-thumbnail
skips the video, but still downloads the thumbnail.