From: Joey Hess Date: Tue, 30 Jan 2024 19:51:33 +0000 (-0400) Subject: followup and close X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~25^2~220 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3b22e61007064a24cb893253e2d39de1c93de705;p=git-annex.git followup and close --- diff --git a/doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__.mdwn b/doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__.mdwn index b9bc7181a3..3953257269 100644 --- a/doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__.mdwn +++ b/doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__.mdwn @@ -89,3 +89,6 @@ note that if I fake up that youtube url by changing letter to the next `d` - res ❯ yt-dlp https://www.youtube.com/watch?v=jy01CnsQ9ed --get-filename --no-warnings --no-playlist ERROR: [youtube] jy01CnsQ9ed: Video unavailable ``` + +> I don't consider this a bug because with --no-raw it will do what you +> want. --[[Joey]] diff --git a/doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__/comment_1_8b761cfc9b2ca784efc15b39689c31f5._comment b/doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__/comment_1_8b761cfc9b2ca784efc15b39689c31f5._comment new file mode 100644 index 0000000000..59cc38f565 --- /dev/null +++ b/doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__/comment_1_8b761cfc9b2ca784efc15b39689c31f5._comment @@ -0,0 +1,20 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2024-01-30T19:43:50Z" + content=""" +To get the behavior you want, use `--no-raw`: + + git-annex addurl --no-raw 'https://www.youtube.com/watch?v=jy01CnsQ9ec' + addurl https://www.youtube.com/watch?v=jy01CnsQ9ec + + Unable to use youtube-dl or a special remote and --no-raw was specified: no media in url + failed + addurl: 1 failed + +Bear in mind that yt-dlp supports many websites, not just youtube, and youtube +probably has many domains (eg `youtu.be`). And addurl can legitimately be used +when you want to archive the current content of an url. So in this case +git-annex can't distinguish between a webpage with a withdrawn or private video +and any other url that a user would expect it to download. +"""]]