Commit d6a9e1c

bryfry <bryon@fryer.io>
2023-12-23 16:45:43
updates
1 parent d2fd840
fetch.sh
@@ -1,23 +1,3 @@
-#!/bin/bash
-set -eux
-
-function playlist-dl {
-	NAME=${1}
-	PLAYLIST=${2}
-	mkdir -p media/${NAME}
-	pushd media/${NAME}
-	youtube-dl \
-		--extract-audio \
-	       	--audio-format mp3 \
-		--embed-thumbnail \
-		--output "%(title)s.%(ext)s" \
-		--restrict-filenames \
-		--yes-playlist \
-		"https://music.youtube.com/playlist?list=${PLAYLIST}" 
-	popd
-}
-
-				
 playlist-dl driving-with-natalie PL1q1SH2wELHAj8Ob18bBJJce8okmekj1q
 playlist-dl beach PL1q1SH2wELHCutmXKuDNHsdgOdsDOpeDr
 playlist-dl likes PL1q1SH2wELHBdlaEoE5xc4GDaS9_iSWWu
playlist-dl
@@ -0,0 +1,17 @@
+#!/bin/bash
+function playlist-dl {
+	NAME=${1}
+	PLAYLIST=${2}
+	mkdir -p media/${NAME}
+	pushd media/${NAME}
+	yt-dlp \
+		--extract-audio \
+	       	--audio-format mp3 \
+		--embed-thumbnail \
+		--output "%(title)s.%(ext)s" \
+		--restrict-filenames \
+		--yes-playlist \
+		"https://www.youtube.com/playlist?list=${PLAYLIST}" \
+		> playlist-dl.log
+	popd
+}
README.md
@@ -0,0 +1,7 @@
+# playlsit-dl
+
+```bash
+bash install.sh
+source playlist-dl
+bash fetch.sh
+```
requirements.txt
@@ -1,1 +1,2 @@
 youtube-dl
+yt-dlp