From 6ea84bda6625d8583bb2e4e69e9cecb373779169 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 12 Aug 2023 16:56:31 +0200 Subject: [PATCH] fix: title formatting --- knowledge base/yt-dlp.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/knowledge base/yt-dlp.md b/knowledge base/yt-dlp.md index 328fca3..03b6772 100644 --- a/knowledge base/yt-dlp.md +++ b/knowledge base/yt-dlp.md @@ -28,12 +28,12 @@ yt-dlp --list-subs rQnNghhPw6o # Output templates at https://github.com/yt-dlp/yt-dlp#output-template, or use # '-j' to see the json file with all of them. yt-dlp --get-filename \ - -o "%(season_number)d.%(episode_number)02d %(episode)s.%(ext)s" \ + -o "%(season_number)d.%(episode_number)02d %(episode)U.%(ext)s" \ https://www.crunchyroll.com/some/good/serie # Download all videos in a YouTube channel. yt-dlp -f "bestvideo+bestaudio/best" -ciw \ - -o "%(title)s.%(ext)s" -v https://www.youtube.com/c/pbsspacetime/videos + -o "%(title)#S.%(ext)s" -v https://www.youtube.com/c/pbsspacetime/videos # As above with improvements. # Slow down the requests to avoid issues in retrieving the data. @@ -45,7 +45,7 @@ yt-dlp -ciw \ --sub-langs "(de|en|fr|es|it|ja|nl|zh(-Han.*)?)(-en)?" \ --sub-format "ass/srt/best" --write-auto-subs \ -f "bestvideo+bestaudio/best" \ - -o "%(timestamp>%Y-%m-%d,upload_date>%Y-%m-%d)s %(title)s.%(ext)s" \ + -o "%(timestamp>%Y-%m-%d,upload_date>%Y-%m-%d)s %(title)U.%(ext)s" \ https://www.youtube.com/c/becausescience/videos ```