Commit bb67635

bryfry <bryon@fryer.io>
2025-07-03 11:27:45
more flags
1 parent e9edcf3
playlist/2025-03/playlist.json
@@ -36,13 +36,13 @@
       }
     },
     {
-      "file": "ExIpnf9y95w.wav",
+      "file": "gJ2aMxKjAC4.wav",
       "details": {
         "title": "Ankles",
         "artist": "Lucy Dacus",
-        "video_id": "ExIpnf9y95w",
+        "video_id": "gJ2aMxKjAC4",
         "duration": "3:12",
-        "thumbnail": "https://i.ytimg.com/vi/ExIpnf9y95w/maxresdefault.jpg",
+        "thumbnail": "https://i.ytimg.com/vi/gJ2aMxKjAC4/maxresdefault.jpg",
         "channel_id": "UCt-KqR_ceCdjeMljGYiXSww"
       }
     },
.gitignore
@@ -1,2 +1,3 @@
 *.wav
 *.ogg
+*.mp4
fetch.go
@@ -51,7 +51,6 @@ func main() {
 		"--audio-format", "wav",
 		"--paths", playlistDir,
 		"--output", "%(id)s.%(ext)s",
-		"--restrict-filenames",
 		playlistURL,
 	)
 	cmd.Stdout = os.Stdout
mixtape.go
@@ -91,9 +91,10 @@ func main() {
 	mixtapeOggPath := filepath.Join(playlistDir, mixtapeOgg)
 	cmd := exec.Command(
 		ffmpegPath,
+		"-y", // overwrite
 		"-i", mixtapeWavPath,
-		"-c:a", "libopus",
-		"-b:a", "128k",
+		"-codec:a", "libopus",
+		"-b:a", "192k",
 		"-vbr", "on",
 		"-application", "audio",
 		mixtapeOggPath,
README.md
@@ -24,3 +24,7 @@ go run mixtape.go {{ path to playlist.json }}
 - [x] run yt-dlp on a playlist.json
 - [ ] progress details mixtape.go
 - [ ] make cobra-cli with subcommands
+- [ ] create html page for each playlist
+- [ ] create header image for each playlist
+- [ ] publish into cloudflare R2
+