followup and open bug

This commit is contained in:
Joey Hess 2017-12-31 12:35:52 -04:00
parent d324eb42bc
commit f9002062b0
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,17 @@
I have often used a terminal window and prefixed my input with "git-annex
addurl" then drag links to the window for pasting. Often, I have to press the
up-arrow and run the command again. The addurl behavior with urls that are
already locally present, quvi responds "ok." However, when repeating a command
using yt-dl, when the url is already local, yt-dl refuses to overwrite, yet
returns "failed." I didn't know if you were aware of this. This isn't a
show-stopper, but just something I noticed. I generally do "addurl" manually.
> I tried this, and it's not youtube-dl failing; but it re-downloads
> the whole content of the already present file, and then git-annex fails:
>
> whatever.mp4 already exists; not overwriting
>
> So I think it needs to ask youtube-dl for the filename first, and check
> if the local file already exists and already has the url, to get back to
> the old behavior.
> -- [[Joey]]

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2017-12-31T16:25:07Z"
content="""
It uses whatever youtube-dl you have in PATH.
I was not aware of the changed behavior when adding an url that's already
locally present. I've opened [[bugs/addurl_youtube-dl_behavior_change]]
to remember to look into it.
The reason it only downloads one video from a playlist or channel is that
git-annex needs to associate an url with the annexed file, so it can later
download that single file when git-annex get is used, and there's no clear
way to associate an url with a particular file that youtube-dl downloaded
from a playlist or channel or whatever. [[tips/downloading_podcasts]] has a
way to use `git annex importfeed` with a youtube playlist though.
"""]]