From 6e469bacbcbd9a12bb44ac496fb942486aa1c869 Mon Sep 17 00:00:00 2001 From: Thrila Date: Thu, 5 Oct 2023 12:58:06 +0100 Subject: [PATCH 01/14] yt-dlp: refactor ytdlp page in youtube-dl format --- pages/common/yt-dlp.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index d560237a4b091..8f93a7473a22d 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -8,11 +8,11 @@ `yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- List the available downloadable formats for a video: +- List all formats that a video or playlist is available in: `yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- Download a video with a defined format, in this case the best mp4 video available (default is "bv\*+ba/b"): +- Download a video or playlist at a specific quality: `yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` @@ -22,16 +22,16 @@ - Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5): -`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` +`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{url}}"` - Download all playlists of YouTube channel/user keeping each playlist in separate directory: -`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"` +`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{url}}"` - Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home: -`yt-dlp -u {{user}} -p {{password}} -P "{{~/MyVideos}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"` +`yt-dlp -u {{user}} -p {{password}} -P "{{~/MyVideos}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{url}}"` - Download entire series season keeping each series and each season in separate directory under C:/MyVideos: -`yt-dlp -P "{{C:/MyVideos}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://videomore.ru/kino_v_detalayah/5_sezon/367617}}"` +`yt-dlp -P "{{C:/MyVideos}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{url}}"` From a37f211135da84faba1f21f22bbb605a6c7f85b8 Mon Sep 17 00:00:00 2001 From: Thrila Date: Thu, 5 Oct 2023 13:05:50 +0100 Subject: [PATCH 02/14] yt-dlp: remove incidental extra space --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 8f93a7473a22d..808aa65c390b0 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -12,7 +12,7 @@ `yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- Download a video or playlist at a specific quality: +- Download a video or playlist at a specific quality: `yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` From 2f3be915d069efc682a65d79a9030bac8833cbdb Mon Sep 17 00:00:00 2001 From: Thrila Date: Sat, 13 Apr 2024 01:29:40 +0100 Subject: [PATCH 03/14] feat: removed url and added placeholder removed url e.g youtube.com and added a placeholder --- pages/common/yt-dlp.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 808aa65c390b0..c0ba3704627a7 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -6,19 +6,19 @@ - Download a video or playlist (with the default options from command below): -`yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` +`yt-dlp "{{url}}"` - List all formats that a video or playlist is available in: -`yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` +`yt-dlp --list-formats "{{url}}"` - Download a video or playlist at a specific quality: -`yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` +`yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{url}}"` - Extract audio from a video (requires ffmpeg or ffprobe): -`yt-dlp --extract-audio "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` +`yt-dlp --extract-audio "{{url}}"` - Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5): From 0b85d8c587ab798b8c435877bba71bb8b1d8fdfd Mon Sep 17 00:00:00 2001 From: Thrila Date: Sat, 13 Apr 2024 02:17:51 +0100 Subject: [PATCH 04/14] chore: change placeholder path --- pages/common/yt-dlp.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index c0ba3704627a7..549a2fccf7852 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -28,10 +28,10 @@ `yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{url}}"` -- Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home: +- Download Udemy course keeping each chapter in separate directory under path/to/directory directory in your home: -`yt-dlp -u {{user}} -p {{password}} -P "{{~/MyVideos}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{url}}"` +`yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{url}}"` -- Download entire series season keeping each series and each season in separate directory under C:/MyVideos: +- Download entire series season keeping each series and each season in separate directory under path/to/directory: -`yt-dlp -P "{{C:/MyVideos}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{url}}"` +`yt-dlp -P "{{path/to/directory}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{url}}"` From 07a055735a0cbe1a46d1115be244098b0e8515d7 Mon Sep 17 00:00:00 2001 From: Thrila Date: Sun, 26 May 2024 02:35:04 +0100 Subject: [PATCH 05/14] yt-dlp: edit file with suggestions --- pages/common/yt-dlp.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 68b3ea0404940..14d546947247a 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -7,32 +7,32 @@ - Download a video or playlist (with the default options from command below): -`yt-dlp "{{url}}"` +`yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` - List all formats that a video or playlist is available in: -`yt-dlp --list-formats "{{url}}"` +`yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- Download a video or playlist at a specific quality: +- Download a video or playlist using best MP4 video available (default is "bv\*+ba/b"): -`yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{url}}"` +`yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` - Extract audio from a video (requires ffmpeg or ffprobe): -`yt-dlp --extract-audio "{{url}}"` +`yt-dlp --extract-audio "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` - Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5): -`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{url}}"` +`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` - Download all playlists of YouTube channel/user keeping each playlist in separate directory: -`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{url}}"` +`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` - Download Udemy course keeping each chapter in separate directory under path/to/directory directory in your home: -`yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{url}}"` +`yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}"` - Download entire series season keeping each series and each season in separate directory under path/to/directory: -`yt-dlp -P "{{path/to/directory}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{url}}"` +`yt-dlp -P "{{path/to/directory}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}"` From ddb8a24c74cd9f97496c88406bfb7282e7405f27 Mon Sep 17 00:00:00 2001 From: Ifeanyichukwu Ndubuizu <79278137+thrila@users.noreply.github.com> Date: Mon, 27 May 2024 17:21:14 +0100 Subject: [PATCH 06/14] Update pages/common/yt-dlp.md Co-authored-by: K.B.Dharun Krishna --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 14d546947247a..6f8111eaf43f2 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -33,6 +33,6 @@ `yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}"` -- Download entire series season keeping each series and each season in separate directory under path/to/directory: +- Download the entire series season keeping each series and each season in a separate directory: `yt-dlp -P "{{path/to/directory}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}"` From 4ea2b363469c6f7a633c02d09d26a26f9e63c9bb Mon Sep 17 00:00:00 2001 From: Ifeanyichukwu Ndubuizu <79278137+thrila@users.noreply.github.com> Date: Mon, 27 May 2024 17:21:27 +0100 Subject: [PATCH 07/14] Update pages/common/yt-dlp.md Co-authored-by: K.B.Dharun Krishna --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 6f8111eaf43f2..0480bc390050b 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -35,4 +35,4 @@ - Download the entire series season keeping each series and each season in a separate directory: -`yt-dlp -P "{{path/to/directory}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}"` +`yt-dlp -P "{{path/to/directory}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` From 31366a197feb4ab60a085ae7bf21421691d2567c Mon Sep 17 00:00:00 2001 From: Ifeanyichukwu Ndubuizu <79278137+thrila@users.noreply.github.com> Date: Mon, 27 May 2024 17:21:38 +0100 Subject: [PATCH 08/14] Update pages/common/yt-dlp.md Co-authored-by: K.B.Dharun Krishna --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 0480bc390050b..abeccccb01c38 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -29,7 +29,7 @@ `yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- Download Udemy course keeping each chapter in separate directory under path/to/directory directory in your home: +- Download a Udemy course keeping each chapter in a separate directory: `yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}"` From 4268b316f679d24234b47a3efc41db2512ea792b Mon Sep 17 00:00:00 2001 From: Ifeanyichukwu Ndubuizu <79278137+thrila@users.noreply.github.com> Date: Mon, 27 May 2024 17:22:03 +0100 Subject: [PATCH 09/14] Update pages/common/yt-dlp.md Co-authored-by: K.B.Dharun Krishna --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index abeccccb01c38..bd7747ccd0c18 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -25,7 +25,7 @@ `yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- Download all playlists of YouTube channel/user keeping each playlist in separate directory: +- Download all playlists of a YouTube channel/user keeping each playlist in a separate directory: `yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` From 166eb90cd51f514250c44ba5b56d9e92b071b4ca Mon Sep 17 00:00:00 2001 From: Ifeanyichukwu Ndubuizu <79278137+thrila@users.noreply.github.com> Date: Mon, 27 May 2024 17:22:12 +0100 Subject: [PATCH 10/14] Update pages/common/yt-dlp.md Co-authored-by: K.B.Dharun Krishna --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index bd7747ccd0c18..3a28f11db85af 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -31,7 +31,7 @@ - Download a Udemy course keeping each chapter in a separate directory: -`yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}"` +`yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"` - Download the entire series season keeping each series and each season in a separate directory: From 0188dd22ab1493891a487dce2266c3667eb4a87e Mon Sep 17 00:00:00 2001 From: Ifeanyichukwu Ndubuizu <79278137+thrila@users.noreply.github.com> Date: Mon, 27 May 2024 17:22:29 +0100 Subject: [PATCH 11/14] Update pages/common/yt-dlp.md Co-authored-by: K.B.Dharun Krishna --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 3a28f11db85af..f8bfd643984c9 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -9,7 +9,7 @@ `yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- List all formats that a video or playlist is available in: +- List the available downloadable formats for a video: `yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` From 082092dccb18d90348da6e68fad6f082507fb5d1 Mon Sep 17 00:00:00 2001 From: spageektti Date: Tue, 4 Jun 2024 08:39:11 +0200 Subject: [PATCH 12/14] yt-dlp: fix placeholder url Co-authored-by: K.B.Dharun Krishna --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index f8bfd643984c9..a26417cabc646 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -27,7 +27,7 @@ - Download all playlists of a YouTube channel/user keeping each playlist in a separate directory: -`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` +`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"` - Download a Udemy course keeping each chapter in a separate directory: From d8e4ebda2b75edca558584ef9400d6ba9bfaaa16 Mon Sep 17 00:00:00 2001 From: spageektti Date: Tue, 4 Jun 2024 09:22:04 +0200 Subject: [PATCH 13/14] remove example --- pages/common/yt-dlp.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index a26417cabc646..1fd6cf716ad26 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -32,7 +32,3 @@ - Download a Udemy course keeping each chapter in a separate directory: `yt-dlp -u {{user}} -p {{password}} -P "{{path/to/directory}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"` - -- Download the entire series season keeping each series and each season in a separate directory: - -`yt-dlp -P "{{path/to/directory}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` From c86f4653a4f73423a6d305aeb63ce42313d8323d Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Tue, 4 Jun 2024 13:34:21 +0530 Subject: [PATCH 14/14] Apply suggestions from code review --- pages/common/yt-dlp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 1fd6cf716ad26..5e5cec100168c 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -13,7 +13,7 @@ `yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` -- Download a video or playlist using best MP4 video available (default is "bv\*+ba/b"): +- Download a video or playlist using the best MP4 video available (default is "bv\*+ba/b"): `yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`