addurl --file youtube-dl reversion fix

addurl: Fix reversion in 7.20190322 that made --file not be honored when
youtube-dl was used to download media.

8758f9c561 was on the right track, but missed that | otherwise prevented
the code it added from being used.

Also, refactored out a common function.

This commit was sponsored by Graham Spencer on Patreon.
This commit is contained in:
Joey Hess 2020-08-25 12:56:38 -04:00
parent 27329f0bb1
commit 2ca1ff62dc
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 19 additions and 20 deletions

View file

@ -50,3 +50,5 @@ I only recently started using the web special remote stuff, and really like it;
### 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.
> [[fixed|done]] --[[Joey]]