From 9a5e16d07792ddc94d653d996bdf694e41c437f8 Mon Sep 17 00:00:00 2001 From: Stephane DAVID Date: Thu, 1 Oct 2026 18:16:50 +0200 Subject: [PATCH] First version --- .env | 4 ++++ config.yaml | 13 +++++++++++++ docker-compose.yml | 38 ++++++++++++++++++++++++++++++++++++++ subscriptions.yaml | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 .env create mode 100644 config.yaml create mode 100644 docker-compose.yml create mode 100644 subscriptions.yaml 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