From 59a5e66f6b4f0bf6d8ac7c5a2efd108fbdeacb6e Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Fri, 9 Oct 2026 16:38:08 +0200 Subject: [PATCH] First version --- docker-compose.yml | 45 ++++++++++++++++++++++-------- config.yaml => sources/config.yaml | 6 ---- sources/subscriptions.yaml | 34 ++++++++++++++++++++++ subscriptions.yaml | 34 ---------------------- 4 files changed, 67 insertions(+), 52 deletions(-) rename config.yaml => sources/config.yaml (96%) create mode 100644 sources/subscriptions.yaml delete mode 100644 subscriptions.yaml diff --git a/docker-compose.yml b/docker-compose.yml index 1f3c3b3..123a6b5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,38 +1,59 @@ services: + init-configuration: + image: alpine:latest + container_name: podcast-init-configuration + user: '0:0' + environment: + TZ: ${TZ} + command: > + sh -c "cp -fu /sources/config.yaml /config && + cp -fu /sources/subscriptions.yaml /config" + volumes: + - /var/lib/docker/volumes/hawser_stacks/_data/pdocasts/sources:/sources + - /var/lib/docker/volumes/ytdl-sub/config/ytdl-sub:/config + restart: no + networks: + - podcastsnet ytdl-sub: image: ghcr.io/jmbannon/ytdl-sub:latest container_name: ytdl-sub - + depends_on: + init-configuration: + condition: service_completed_successfully restart: unless-stopped - user: "${PUID}:${PGID}" - environment: TZ: ${TZ} - volumes: - /var/lib/docker/volumes/ytdl-sub/config/ytdl-sub:/config - - ./media/podcasts:/media/podcasts - + - /network/dd6_datas/Podcasts:/media/podcasts command: - /config/subscriptions.yaml + networks: + - podcastsnet cron: image: alpine:latest - container_name: podcast-cron - restart: unless-stopped - + environment: + TZ: ${TZ} 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 + done " + networks: + - podcastsnet + +networks: + podcastsnet: + driver: bridge + ipam: + config: + - subnet: 172.62.0.0/24 \ No newline at end of file diff --git a/config.yaml b/sources/config.yaml similarity index 96% rename from config.yaml rename to sources/config.yaml index 708324a..b5f625f 100644 --- a/config.yaml +++ b/sources/config.yaml @@ -1,13 +1,7 @@ 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/sources/subscriptions.yaml b/sources/subscriptions.yaml new file mode 100644 index 0000000..879feca --- /dev/null +++ b/sources/subscriptions.yaml @@ -0,0 +1,34 @@ +__preset__: + - podcast + +A La French: + rss_url: https://feeds.acast.com/public/shows/a-la-french + output_options: + output_directory: /media/podcasts/Video/A La French + file_name: > + %(upload_date>%Y-%m-%d)s - + %(title)s.%(ext)s + +Double Slash: + rss_url: https://double-slash.dev/podcast-rss-feed.xml + output_options: + output_directory: /media/podcasts/Video/Double Slash + file_name: > + %(upload_date>%Y-%m-%d)s - + %(title)s.%(ext)s + +Les Cast Codeurs: + url: https://lescastcodeurs.libsyn.com/rss + output_options: + output_directory: /media/podcasts/Video/Les Cast Codeurs + file_name: > + %(upload_date>%Y-%m-%d)s - + %(title)s.%(ext)s + +Tech.Rocks: + url: https://feed.ausha.co/yAe9vhMWlRL1 + output_options: + output_directory: /media/podcasts/Video/Tech.Rocks + file_name: > + %(upload_date>%Y-%m-%d)s - + %(title)s.%(ext)s \ No newline at end of file diff --git a/subscriptions.yaml b/subscriptions.yaml deleted file mode 100644 index 7a3dc59..0000000 --- a/subscriptions.yaml +++ /dev/null @@ -1,34 +0,0 @@ -__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