From c68bf6fc90db54640a6699d588586824de6eba04 Mon Sep 17 00:00:00 2001 From: "git-annex@32dadd8082caa7c4ec9b28cf7dcf78e0d9fe58a8" Date: Wed, 12 Aug 2020 13:09:02 +0000 Subject: [PATCH] Bug: addurl --file not working as expected with youtube-dl --- ...h_youtube-dl_with_--fast_or_--relaxed.mdwn | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 doc/bugs/addurl_--file_only_works_with_youtube-dl_with_--fast_or_--relaxed.mdwn diff --git a/doc/bugs/addurl_--file_only_works_with_youtube-dl_with_--fast_or_--relaxed.mdwn b/doc/bugs/addurl_--file_only_works_with_youtube-dl_with_--fast_or_--relaxed.mdwn new file mode 100644 index 0000000000..beb4a4c67b --- /dev/null +++ b/doc/bugs/addurl_--file_only_works_with_youtube-dl_with_--fast_or_--relaxed.mdwn @@ -0,0 +1,52 @@ +### Please describe the problem. + +The `--file` option doesn't work with youtube-dl downloaded content unless --fast or --relaxed are passed. + +### What steps will reproduce the problem? + +[[!format sh """ +$ git annex addurl --file out.m4a https://www.bbc.co.uk/programmes/p08jsctb +addurl https://www.bbc.co.uk/programmes/p08jsctb +... (cut most youtube-dl output) +[download] Destination: Bloodsport, Introducing Bloodsport-p08jscdd.m4a +[download] 100% of 909.06KiB in 00:03 +[ffmpeg] Correcting container in "Bloodsport, Introducing Bloodsport-p08jscdd.m4a" +(to Bloodsport, Introducing Bloodsport-p08jscdd.m4a) ok +(recording state in git...) +$ ls +'Bloodsport, Introducing Bloodsport-p08jscdd.m4a' +"""]] + +Whereas I expected the created file to be 'out.m4a'. + +However it works correctly when using --fast or --relaxed to set the URL, and then using git annex get separately: + +[[!format sh """ +$ git annex addurl --relaxed --file out.m4a https://www.bbc.co.uk/programmes/p08jsctb +addurl https://www.bbc.co.uk/programmes/p08jsctb (to out.m4a) ok +(recording state in git...) +$ ls +out.m4a +$ git annex get out.m4a +get out.m4a (from web...) +... (cut most youtube-dl output) +[download] Destination: Bloodsport, Introducing Bloodsport-p08jscdd.m4a +[download] 100% of 909.06KiB in 00:01 +[ffmpeg] Correcting container in "Bloodsport, Introducing Bloodsport-p08jscdd.m4a" +ok +(recording state in git...) +$ ls +out.m4a +"""]] + +### What version of git-annex are you using? On what operating system? + +8.20200330 (Debian sid) + +### Please provide any additional information below. + +I only recently started using the web special remote stuff, and really like it; thanks! + +### Have you had any luck using git-annex before? + +Yes, I've used it for several years for all sorts of things, and it just gets better and better. -- 2.30.2