Commit graph

23082 commits

Author SHA1 Message Date
https://me.yahoo.com/a/x4ddlZwKw9O9IsCHmNZz7tSJn2h0H3vX#23f03
6bc4852d54 2017-12-07 18:32:45 +00:00
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
Joey Hess
6b5e55a154
reproduction recipe 2017-12-06 12:02:19 -04:00
Horus
1dba744342 Added a comment 2017-12-06 11:45:33 +00:00
http://xgm.de/oid/
deef1e1a26 Added a comment 2017-12-06 08:39:10 +00:00
http://xgm.de/oid/
bb019c87c1 removed 2017-12-06 08:36:45 +00:00
http://xgm.de/oid/
a774e6f53e Added a comment 2017-12-06 08:33:41 +00:00
yarikoptic
91264858e9 2017-12-06 00:50:17 +00:00
yarikoptic
c589562131 initial whining about yt: prefix 2017-12-06 00:46:33 +00:00
yarikoptic
cf05ebbeba Added a comment 2017-12-05 18:51:49 +00:00
yarikoptic
6c3fa431d9 Added a comment 2017-12-05 18:26:43 +00:00
yarikoptic
7187d454d3 Added a comment 2017-12-05 18:20:41 +00:00
Joey Hess
ed701667aa
fix gpg subkey support typo
initremote, enableremote: Really support gpg subkeys suffixed with an
exclamation mark, which forces gpg to use a specific subkey. (Previous try
had a bug.)

This commit was sponsored by Jake Vosloo on Patreon.
2017-12-05 13:58:53 -04:00
Joey Hess
4e38c4f57f
Allow exporttree remotes to be marked as dead.
Union with max so that DeadTrusted wins over UnTrusted.

This commit was sponsored by Trenton Cronholm on Patreon.
2017-12-05 13:46:55 -04:00
Joey Hess
1f937ee840
comment 2017-12-05 13:40:04 -04:00
Joey Hess
e5c610b298
response 2017-12-05 13:35:15 -04:00
Joey Hess
bb456fdccd
response 2017-12-05 13:32:31 -04:00
Joey Hess
f6d0c6de30
yet another instance of git smudge/clean interface suck 2017-12-05 13:28:07 -04:00
Joey Hess
f00770d736
Removed no longer needed dependency on yesod-default.
This commit was sponsored by Nick Daly on Patreon.
2017-12-05 13:18:25 -04:00
Joey Hess
fd24034e56
fix format of comment 2017-12-05 13:01:26 -04:00
Joey Hess
c93e124a28
response 2017-12-05 12:45:21 -04:00
Joey Hess
bb1299a5f1
Merge branch 'master' of ssh://git-annex.branchable.com 2017-12-05 12:44:11 -04:00
Joey Hess
42368af8f4
comment 2017-12-05 12:43:57 -04:00
andrew
1807fb2a8a Added a comment: gcrypt, git-annex and rsync requires absolute path 2017-12-05 13:49:42 +00:00
http://xgm.de/oid/
98dc4b9a0a 2017-12-04 20:04:56 +00:00
Joey Hess
ae945d3810
update 2017-12-04 12:25:21 -04:00
anarcat
adaad9e449 note when the command was introduced 2017-12-02 00:26:29 +00:00
Joey Hess
afd8aa0b11
Merge branch 'master' of ssh://git-annex.branchable.com 2017-11-30 17:08:44 -04:00
Joey Hess
15d5d0fafb
devblog 2017-11-30 17:08:18 -04:00
Joey Hess
640cb36a5c
Merge branch 'master' into youtube-dl 2017-11-30 16:16:58 -04:00
Joey Hess
2528e3ddb0
rethought --relaxed change
Better to make it not be surprising and slow, than surprising and fast.
--raw can be used when it needs to be really fast.

Implemented adding a youtube-dl supported url to an existing file.

This commit was sponsored by andrea rota.
2017-11-30 14:13:20 -04:00
pietroastolfi92@8933106257e5e108af6f46b584f3f10acb198f1d
34346dd563 2017-11-30 16:31:29 +00:00
http://xgm.de/oid/
09ddd34b76 2017-11-30 12:32:53 +00:00
Joey Hess
31b4d7c6d0
pass git config options to youtube-dl --simulate
Decided not to --ignore-config by default. It the user has something in
their youtube-dl config files that breaks git-annex they can configure
it to use that option.
2017-11-29 20:07:03 -04:00
Joey Hess
47c3760238
files pushed now 2017-11-29 17:44:53 -04:00
Joey Hess
52607bafe8
Merge branch 'master' of ssh://git-annex.branchable.com 2017-11-29 17:37:14 -04:00
Joey Hess
6d17e7863d
devblog 2017-11-29 17:36:49 -04:00
Joey Hess
24f27ec39d
convert importfeed to youtube-dl
Fully working, including --fast/--relaxed.

Note that, while git-annex addurl --relaxed is not going to check
youtube-dl, I kept git annex importfeed --relaxed checking it.
Thinking is that, let's not break people's importfeed cron jobs, and
importfeed does not typically have to check a large number of new items,
so it's ok if it's a little bit slower when used with youtube playlist
feeds.

importfeed's behavior is also improved (?) when a feed has links in it
to non-media files. Before, those were skipped. Now, the content of the
link is downloaded. This had to be done, because trying to use
youtube-dl is slow, and if those were skipped, it would have to check
every time importfeed was run. While this behavior change may not be
desirable for some feeds, that intersperse links to web pages with
enclosures, it will be desirable for other feeds, that have
non-enclosure directy links to media files.

Remove old quvi modules.

This commit was sponsored by Øyvind Andersen Holm.
2017-11-29 17:30:02 -04:00
Joey Hess
99bebdface
youtube-dl working
Including resuming and cleanup of incomplete downloads.

Still todo: --fast, --relaxed, importfeed, disk reserve checking,
quvi code cleanup.

This commit was sponsored by Anthony DeRobertis on Patreon.
2017-11-29 16:40:32 -04:00
sunny256
4d1b96d4e8 Added a comment: Version missing from the annex 2017-11-29 16:15:04 +00:00
Joey Hess
58b04cd2e7
response 2017-11-28 18:08:02 -04:00
Joey Hess
339263a06f
Merge branch 'master' of ssh://git-annex.branchable.com 2017-11-28 17:44:20 -04:00
Joey Hess
6de5c0906b
devblog 2017-11-28 17:43:41 -04:00
Joey Hess
3febb79c8f
wip 2017-11-28 17:17:40 -04:00
Joey Hess
d6d8f72957
documentation update for youtube-dl
Code not updated yet.

This commit was sponsored by Thomas Hochstein on Patreon.
2017-11-28 14:05:58 -04:00
Joey Hess
d1d04a3c65
size checking 2017-11-28 13:37:50 -04:00
Joey Hess
8f41a1b7ce
update youtube playlist docs 2017-11-28 13:30:05 -04:00
Joey Hess
57b4c5bdff
add Utility.HtmlDetect
This will be used in youtube-dl integration, to tell when a html page has
been downloaded by addurl, in which case it is worth running youtube-dl
to see if it can extract media from it.

tagsoup is an almost free dependency, because yesod depends on it.
So, this only really adds a dep when git-annex is built without the
webapp.

I'd like this to as closely as possible match how browsers decide if a
page is html or not. Unfortunately, that is fairly heuristic, in order
to support malformed html. And, we don't want to falsely detect
something as html just because it has something that looks like a html
tag embedded somewhere in it. Probably any major video hosting site is
going to be serving html documents that at least start with a <html>
tag, so requiring that or a DOCTYPE should be good enough.

This commit was sponsored by Jeff Goeke-Smith on Patreon.
2017-11-28 13:03:11 -04:00
ganewbie01
391619f6de Added a comment: found it! ( I think ... or should I be still looking for "database" branch? ) 2017-11-28 01:03:06 +00:00
Joey Hess
c37838d1b7
update; filed youtube-dl bug 2017-11-27 16:29:29 -04:00