mirror of
https://github.com/zoriya/snow.git
synced 2026-06-06 13:02:30 +00:00
Download lives playlist
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -11,6 +11,9 @@ spec:
|
||||
- secretKey: url
|
||||
remoteRef:
|
||||
key: yt-playlist
|
||||
- secretKey: livesUrl
|
||||
remoteRef:
|
||||
key: yt-live-playlist
|
||||
- secretKey: cookies
|
||||
remoteRef:
|
||||
key: yt-cookies
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user