fix regression in addurl --fast caused by youtube-dl support
Similar to c6e4bc0a22
but another code
path. As well as using youtube-dl unecessarily, it used the filename it
comes up with, which while nice for youtube videos, is not right for
other files.
This means more work is done for urls that youtube-dl does support,
but is probably more efficient for other urls, since it only downloads
the first chunk of content, while youtube-dl probably downloads more.
This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
parent
5b98da60b1
commit
8990afaef0
3 changed files with 46 additions and 25 deletions
|
@ -0,0 +1,6 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 2"""
|
||||
date="2017-12-06T16:02:55Z"
|
||||
content="""
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 4"""
|
||||
date="2017-12-08T18:48:46Z"
|
||||
content="""
|
||||
That one happened with `git annex addurl --fast $url` so a different code
|
||||
path. Had to add a html page check to youtubeDlFileName to fix it.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue