{"id":25629596,"url":"https://github.com/niklasheld/zdf-download","last_synced_at":"2026-06-10T13:30:15.684Z","repository":{"id":65274912,"uuid":"402206747","full_name":"niklasheld/zdf-download","owner":"niklasheld","description":"📺 Automatically download new episodes of shows from the ZDF Mediathek","archived":false,"fork":false,"pushed_at":"2023-05-23T02:13:13.000Z","size":25,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-10-21T17:39:19.757Z","etag":null,"topics":["downloader","python","youtube-dl","zdf"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niklasheld.png","metadata":{"files":{"readme":"readme.md","changelog":"history.py","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-01T21:23:24.000Z","updated_at":"2023-10-21T17:39:19.758Z","dependencies_parsed_at":"2023-01-16T04:15:20.047Z","dependency_job_id":null,"html_url":"https://github.com/niklasheld/zdf-download","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasheld%2Fzdf-download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasheld%2Fzdf-download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasheld%2Fzdf-download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasheld%2Fzdf-download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niklasheld","download_url":"https://codeload.github.com/niklasheld/zdf-download/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240222479,"owners_count":19767464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["downloader","python","youtube-dl","zdf"],"created_at":"2025-02-22T19:17:28.178Z","updated_at":"2026-06-10T13:30:15.586Z","avatar_url":"https://github.com/niklasheld.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\n\u003ch1 style=\"text-alignment: center\"\u003eZDF-Download\u003c/h1\u003e\n\n[![Build Container](https://github.com/niklasheld/zdf-download/actions/workflows/build-container.yaml/badge.svg)](https://github.com/niklasheld/zdf-download/actions/workflows/build-container.yaml)\n[![Build Container](https://github.com/niklasheld/zdf-download/actions/workflows/quality.yaml/badge.svg)](https://github.com/niklasheld/zdf-download/actions/workflows/quality.yaml)\n[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)\n[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=zdf-download)](https://sonarcloud.io/summary/new_code?id=zdf-download)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=zdf-download\u0026metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=zdf-download)\n[![Known Vulnerabilities](https://snyk.io/test/github/niklasheld/zdf-download/badge.svg)](https://snyk.io/test/github/niklasheld/zdf-download)\n\nScript to automatically download new episodes of TV shows from the ZDF Mediathek. The script is meant to quickly download *new* episodes, not all available episodes.\n\n## How to add new shows\n\nAdd RSS-feeds for the show you want to download to the configuration script. You can find a direct URL to the field in the source-code of the mediathek-page. An example for *ZDF Magazin Royale* is [https://www.zdf.de/rss/zdf/comedy/zdf-magazin-royale](https://www.zdf.de/rss/zdf/comedy/zdf-magazin-royale)  \n\nAs an option, you can also define regex-filters on fields from the rss-feed to filter out episodes you don't want, i.e. specials or short online-clips. `configuration-example.yaml` has an example for a filter to only download full ZDF Magazin Royale episodes.\n\n## Application logic\n\n- Script assumes that all files in the target folder are named `\u003cShowname\u003e SxxExx` naming-scheme and no files violate this scheme. It also asumes that you are using a flat filestructure for all seasons.\n- When a new episode is found, a sequential filename is generated for the new download. If you want the file to be downloaded in a new season, you have to rename it manually. The next file will then be sequentially added to this season.\n- After a file is downloaded, it's URL is added to a history-file and it will not be downloaded again.\n\n\n## How to start\n\nBefore starting the script, add a custom `configuration.yaml`-file to your directory. You can find an example configuration in the configuration-folder\n\n### Full Configuration\n\nSee `configuration-example.yaml` for an example configuration. The configuration file has to be placed at `/app/configuration/configuration.yaml`.\n\n| Paramter | Description | Example |\n| --- | --- | --- |\n| interval | Minutes between each scan for new episodes | `60` |\n| shows[].feed-url | URL to the RSS-feed for the show you want to download | `\"https://www.zdf.de/rss/zdf/comedy/zdf-magazin-royale\"` |\n| shows[].filter.regex | Regular expression to match only specific episodes of a show | `\"zdf-magazin-royale-vom-\\\\d\"` |\n| shows[].filter.regexField | Field in the RSS-feed that is filtered for the regular expression | `\"link\"` |\n| shows[].filter.minDate | Minimum date of episode to download | `\"2021-09-01 00:00+00:00\"` |\n| shows[].download.folder | Path to the folder where the downloaded files are located for this show | `\"/serien/ZDF Magazin Royale\"` |\n| shows[].download.filename | Base filename that is used to consecutively name episodes. | `\"ZDF Magazin Royale\"` |\n### Docker\n\nThe recommended way to use this program is to start a lightweight Docker-container and mount your media-folders and configuration.\n\n#### Build yourself\n\nYou can start a docker-build using the following command:\n\n``docker build -t zdf-download .``\n\nAfterwards, you can deploy the built container using this command:\n\n``docker run -d --name=zdf-download -v \u003chost-media-folder\u003e:\u003cdocker-media-folder\u003e -v \u003chost-configuration-folder\u003e:/app/configuration zdf-download:latest``\n\n#### Use the latest pre-built image\n\nYou can also use the pre-build container and deploy directly from the GitHub container-registry:\n\n``docker run -d --name=zdf-download -v \u003chost-media-folder\u003e:\u003cdocker-media-folder\u003e -v \u003chost-configuration-folder\u003e:/app/configuration ghcr.io/niklasheld/zdf-download:latest``\n\n### Without docker\n\nInstall the packages from `requirements.txt`, preferably in a python virtual environment. Make sure that `youtube-dl` and `ffmpeg` are installed and available. Start the application using `python app.py`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasheld%2Fzdf-download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklasheld%2Fzdf-download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasheld%2Fzdf-download/lists"}