git-annex/Annex
Joey Hess c6e4bc0a22
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.
2017-12-06 13:22:31 -04:00
..
Branch Unneded constraint 2016-01-28 12:34:07 -04:00
Content Always use filesystem encoding for all file and handle reads and writes. 2016-12-24 14:46:31 -04:00
LockPool enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
MetaData Add day to metadata when annex.genmetadata is enabled. 2017-10-25 15:11:38 -04:00
View
Action.hs fix process and FD leak 2017-09-29 22:36:08 -04:00
AdjustedBranch.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
AutoMerge.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
BloomFilter.hs Another redundant constraint 2016-01-28 12:34:07 -04:00
Branch.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
BranchState.hs
CatFile.hs Always use filesystem encoding for all file and handle reads and writes. 2016-12-24 14:46:31 -04:00
ChangedRefs.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
CheckAttr.hs annex.largefiles can be configured in .gitattributes too 2016-02-02 15:18:17 -04:00
CheckIgnore.hs
Common.hs factor non-type stuff out of Key 2017-02-24 13:42:30 -04:00
Concurrent.hs fix process and FD leak 2017-09-29 22:36:08 -04:00
Content.hs fix windows build 2017-12-05 13:11:03 -04:00
Difference.hs
Direct.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
DirHashes.hs stop using MissingH for MD5 2017-05-15 21:36:03 -04:00
Drop.hs AssociatedFile newtype 2017-03-10 13:35:31 -04:00
Environment.hs still can't express custom-setup deps 2017-11-14 14:59:51 -04:00
Export.hs Fix exporting of non-annexed files to external special remotes. 2017-10-30 12:47:13 -04:00
FileMatcher.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
Fixup.hs use unix-compat 0.5 on windows 2017-11-14 14:00:24 -04:00
GitOverlay.hs Optimisations to git-annex branch query and setting, avoiding repeated copies of the environment. 2016-09-29 13:36:48 -04:00
HashObject.hs Sped up git-annex add in direct mode and v6 by using git hash-object --batch. 2016-03-14 15:58:46 -04:00
Hook.hs post-recive hook to make updateInstead work in direct mode and adjusted branches 2017-02-17 14:04:43 -04:00
Ingest.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
Init.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
InodeSentinal.hs
Journal.hs Always use filesystem encoding for all file and handle reads and writes. 2016-12-24 14:46:31 -04:00
Link.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
Locations.hs youtube-dl working 2017-11-29 16:40:32 -04:00
LockFile.hs Ssh password prompting improved when using -J 2017-05-11 17:36:03 -04:00
LockPool.hs
MakeRepo.hs fix process and FD leak 2017-09-29 22:36:08 -04:00
MetaData.hs enable LambdaCase and convert around 10% of places that could use it 2017-11-15 16:59:32 -04:00
Multicast.hs fix build with old ghc 2017-05-10 14:39:15 -04:00
Notification.hs avoid build warning when built w/o dbus 2017-12-06 10:54:48 -04:00
NumCopies.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
Path.hs
Perms.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
Queue.hs withAltRepo needs a separate queue of changes 2016-06-03 13:57:00 -04:00
ReplaceFile.hs Windows: Fix an over-long temp directory name. 2016-05-06 12:49:41 -04:00
SpecialRemote.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
Ssh.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
TaggedPush.hs sync: Added --cleanup, which removes local and remote synced/ branches. 2017-09-28 14:58:48 -04:00
Transfer.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
UpdateInstead.hs sync hack to make updateInstead work on eg FAT 2017-02-17 15:21:52 -04:00
Url.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
UUID.hs adeiu, MissingH 2017-05-16 01:03:52 -04:00
VariantFile.hs stop using MissingH for MD5 2017-05-15 21:36:03 -04:00
VectorClock.hs avoid accidental Show of VectorClock 2017-08-14 14:51:54 -04:00
Version.hs Support using v3 repositories without upgrading them to v5. 2016-10-05 16:53:09 -04:00
View.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
Wanted.hs
WorkTree.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
YoutubeDl.hs fix regression in addurl --file caused by youtube-dl support 2017-12-06 13:22:31 -04:00