commit 9a5e16d07792ddc94d653d996bdf694e41c437f8 Author: Stephane DAVID Date: Thu Oct 1 18:16:50 2026 +0200 First version diff --git a/.env b/.env new file mode 100644 index 0000000..2206120 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +TZ=Europe/Paris + +PUID=1000 +PGID=1000 \ No newline at end of file diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..708324a --- /dev/null +++ b/config.yaml @@ -0,0 +1,13 @@ +defaults: + + download_archive: /config/archive/downloaded.txt + + retries: 5 + + ignoreerrors: true + + writeinfojson: true + + writethumbnail: true + + embedthumbnail: true \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1f3c3b3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +services: + + ytdl-sub: + image: ghcr.io/jmbannon/ytdl-sub:latest + container_name: ytdl-sub + + restart: unless-stopped + + user: "${PUID}:${PGID}" + + environment: + TZ: ${TZ} + + volumes: + - /var/lib/docker/volumes/ytdl-sub/config/ytdl-sub:/config + - ./media/podcasts:/media/podcasts + + command: + - /config/subscriptions.yaml + + cron: + image: alpine:latest + + container_name: podcast-cron + + restart: unless-stopped + + volumes: + - /var/run/docker.sock:/var/run/docker.sock + + command: > + sh -c " + apk add --no-cache docker-cli && + while true; do + docker exec ytdl-sub ytdl-sub /config/subscriptions.yaml; + sleep 21600; + done + " \ No newline at end of file diff --git a/subscriptions.yaml b/subscriptions.yaml new file mode 100644 index 0000000..7a3dc59 --- /dev/null +++ b/subscriptions.yaml @@ -0,0 +1,34 @@ +__preset__: + - podcast + +Les Technos: + + rss_url: https://lestechnos.be/feed/podcast/ + + output_options: + +Hard Fork: + + rss_url: https://example.com/video-podcast.xml + + output_options: + + output_directory: /media/podcasts/Video/Hard Fork + + file_name: > + %(upload_date>%Y-%m-%d)s - + %(title)s.%(ext)s + +WAN Show: + + url: https://www.youtube.com/@LinusTechTips + + output_options: + + output_directory: /media/podcasts/Video/WAN Show + + file_name: > + %(upload_date>%Y-%m-%d)s - + %(title)s.%(ext)s + + \ No newline at end of file