We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566d1bd commit 10e435bCopy full SHA for 10e435b
zsh/custom/video.zsh
@@ -44,3 +44,16 @@ monitorconf() {
44
;;
45
esac
46
}
47
+
48
+yt-dlp-playlist() {
49
+ if [ $# -ne 1 ]; then
50
+ echo "Usage: yt-dlp-playlist <playlist url>"
51
+ fi
52
+ TITLE="$(yt-dlp --skip-download --print playlist_title --no-warnings "${1}" -I "1:1")"
53
+ echo "Downloading playlist data: ${TITLE}"
54
+ echo "Downloading data as txt:"
55
+ yt-dlp -s --flat-playlist --print-to-file "%(url)s # %(title)s" "%(playlist_title)s.txt" "${1}"
56
+ echo "Downloading data as json:"
57
+ yt-dlp --dump-single-json --skip-download --no-warnings "${1}" > "${TITLE}.json"
58
+ echo "Playlist data downloaded."
59
+}
0 commit comments