followup and close
authorJoey Hess <joeyh@joeyh.name>
Tue, 30 Jan 2024 19:51:33 +0000 (15:51 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 30 Jan 2024 19:51:33 +0000 (15:51 -0400)
doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__.mdwn
doc/todo/yt-dlp__58___parse__47__handle___40__error__41_____34__Video_unavailable__34__/comment_1_8b761cfc9b2ca784efc15b39689c31f5._comment [new file with mode: 0644]

index b9bc7181a3586cfd7c20924fe3608d8f72577cc3..3953257269f9dbf4d2318687a3666f9cdab34d5c 100644 (file)
@@ -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 (file)
index 0000000..59cc38f
--- /dev/null
@@ -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.
+"""]]