A simple tool to generate Podcast-like RSS feeds from youtube (or other youtube-dl supported services) channels, using youtube-dl
Project description
ydl-podcast
A simple tool to generate Podcast-like RSS feeds from youtube (or other
youtube-dl supported services) channels, using
youtube-dl
.
Setup
Install package with requirements:
Youtube-dl:
pip install ydl-podcast[youtube-dl]
yt-dlp:
pip install ydl-podcast[yt-dlp]
Configuration
Edit the config.yaml file to list your podcast sources and configure them, as well as edit general configuration.
The available settings are the following.
General settings
output_dir
: local directory where the downloaded media will be stored, and the podcast xml files generated.url_root
: root url for the static files (used in the generation of the XML to point to the media files.subscriptions
: a list of feeds to subscribe to.youtube-dl-module
: Alternative youtube-dl python module. By default, this uses youtube-dl, but can leverage forks such as yt-dlp.
Feed settings
Mandatory
name NAME
: Name of the podcast source. Used as the podcast title, and media directory name.url URL
: source url for the youtube (or other) channel.
Optional
audio_only True/False
: ifTrue
, audio will be extracted from downloaded videos to create an audio podcast.retention_days N
: only download elements newer thanN
days, and automatically delete elements older.download_last N
: only download the latestN
videos.initialize True/False
: ifTrue
, then downloads everything on the first run, no matter thedownload_last
orretention_days
specified.output_dir
: local directory where the downloaded media will be stored, and the podcast xml files generated.url_root
: root url for the static files (used in the generation of the XML to point to the media files.format
: file format to force youtube-dl to use (eg mp4, webm, mp3 for audio only…)best
: force best quality (only useful when specifying a format).ydl_options
: list of raw youtube-dl options to use. For experienced users, since this will likely yield issues if not understood.nfo_files
: generates nfo files for subscriptions and downloaded episodes (simulates a "tvshow" nfo for the subscription and "tvshow episode" for each video). This helps plex, kodi, jellyfin import correct metadata. Does NOT supportaudio_only
feeds at this point.
Usage
Using cron or your favorite scheduler, run:
ydl_podcast [configfile.yaml]
You can then use your favorite web server to serve the files (a good idea is to
exclude the *.json
and *.part
files from being served as the first might
leak information, and the second is unnecessary.
eg with nginx:
root /var/www/static/podcasts/;
location ~ (\.json$|\.part$) {
return 403;
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ydl_podcast-1.2.9.tar.gz
.
File metadata
- Download URL: ydl_podcast-1.2.9.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.4.0-165-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ea3852d9c0d6c0b81357fe88080d0a95273b55f0d1bbc7308b8c4f43c0c9c8 |
|
MD5 | d23add4646906decea4869d50ea648ad |
|
BLAKE2b-256 | 9d795dd469f71c72d807b56d0987c4ebf2812a84ad70532b7d12c0b93b85818a |
File details
Details for the file ydl_podcast-1.2.9-py3-none-any.whl
.
File metadata
- Download URL: ydl_podcast-1.2.9-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.4.0-165-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66f070cca4489fdfcef1dcc6b0f3bdf8b879c52244272a54141b98d402c17bea |
|
MD5 | bd9c01d5189558601cec1c7eb22b3d56 |
|
BLAKE2b-256 | 9303a97a035d3eed064b60815767e8f5711db5fc498adace64f7b24463d5d00d |