diff options
author | 2017-12-06 13:16:06 -0400 | |
---|---|---|
committer | 2017-12-06 13:22:31 -0400 | |
commit | 9ec6bdfb526fa6b75a264b6417b24aa7f01adc25 (patch) | |
tree | fc6d7acac70a1835117e3f3c5296b71f1ebf7970 /Utility/Split.hs | |
parent | 30671447e071cee943701c8e9d72571ce2d6699d (diff) |
fix regression in addurl --file caused by youtube-dl support
Now youtubeDlCheck downloads the beginning of the url's content and
checks if it's html, only when it is does it pass it off the youtube-dl
to check if it supports it.
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.
As well as the reported bug, this also fixes behavior when an url
was added with youtube-dl, but the url content has now changed from
a html page to something else. Remote.Web.checkKey used to wrongly
succeed in that situation, since youtube-dl said sure it can download
that something else.
This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Utility/Split.hs')
0 files changed, 0 insertions, 0 deletions