Download lives playlist

This commit is contained in:
2025-08-31 20:52:41 +02:00
parent d5ee06bc59
commit 99c88e7e28
3 changed files with 16 additions and 0 deletions
+7
View File
@@ -19,11 +19,18 @@ spec:
env:
- name: OUT
value: /musics
- name: LIVES_OUT
value: /musics/lives
- name: URL
valueFrom:
secretKeyRef:
name: ytdlp
key: url
- name: LIVES_URL
valueFrom:
secretKeyRef:
name: ytdlp
key: livesUrl
volumeMounts:
- name: scripts
mountPath: /app
+3
View File
@@ -11,6 +11,9 @@ spec:
- secretKey: url
remoteRef:
key: yt-playlist
- secretKey: livesUrl
remoteRef:
key: yt-live-playlist
- secretKey: cookies
remoteRef:
key: yt-cookies
+6
View File
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
while true; do
yt-dlp "$LIVES_URL" -o "$LIVES_OUT/%(title)s.%(ext)s" \
--embed-thumbnail --embed-metadata --embed-chapters \
--download-archive "$LIVES_OUT/ytdlp-archive.txt" \
--cookies /app/secrets/cookies.txt \
--cache-dir "$(pwd)"
yt-dlp "$URL" -o "$OUT/%(artist)s - %(title)s.%(ext)s" \
--extract-audio \
--embed-thumbnail --embed-metadata --embed-chapters \