size checking

This commit is contained in:
Joey Hess 2017-11-28 13:37:50 -04:00
parent 8f41a1b7ce
commit d1d04a3c65
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -50,3 +50,10 @@ And --get-filename does not report the actual filename when that happens.
This seems to be due to format merging by ffmpeg; with -f best, it does This seems to be due to format merging by ffmpeg; with -f best, it does
not merge and so does not do that. not merge and so does not do that.
<https://github.com/rg3/youtube-dl/issues/14864> <https://github.com/rg3/youtube-dl/issues/14864>
To do disk free space checking will need a different technique than
git-annex normally uses, because youtube-dl does not provide an easy way to
query for size. Could use --dump-json, but that would require downloading
the web page yet again, so too expensive.. and, the json seems to have
"filesize: null" for youtube videos. What does work is the --max-filesize
option, which makes youtube-dl abort if it's too big.