comment and close not a bug

This commit is contained in:
Joey Hess 2021-02-24 13:31:19 -04:00
parent a942ed4bb9
commit 61c3797dd5
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 25 additions and 0 deletions

View file

@ -47,3 +47,4 @@ command line taken from https://git-annex.branchable.com/tips/using_the_web_as_a
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
oh, yes, git-annex is great for managing binary files, thanks for the work!
> [[done]], see my comment --[[Joey]]

View file

@ -0,0 +1,24 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2021-02-24T17:20:12Z"
content="""
Well, it makes sense for addurl run on a file that is not an annexed file to
fail. There is nothing else it could do in that case that makes sense.
It can't record that the youtube url is a location for the annexed file,
because there is no annexed file.
What you can do is git-annex addurl --relaxed with the youtube url,
which does not download it, and then make git-annex treat the mp4 file
as the content, by running git-annex reinject with the first parameter
being the git-annex filename, and the second being the f.mp4, which will
get moved into the annex.
git-annex addurl --file youtube.vid https://www.youtube.com/watch?v=U33dsEcKge --relaxed
git-annex reinject f.mp4 youtube.vid
Note that this command will work no matter what the content of the first file
is, it will accept anything due to the use of --relaxed. So it's up to you
to make sure you use it with a file that's the same content as the youtube
video.
"""]]