Adds a new mechanism to limit subscriptions' number of videos to an explicit number (only supported date ranges prior to this). Example usage: ``` output_options: keep_max_files: 10 ``` will only keep 10 videos at max. In addition: - `keep_max_files` is bundled into the `Only Recent` preset and can be used via setting the `only_recent_max_files` override variable (see examples or README for usage). - Changed the `date_range` variable name to `only_recent_date_range` for more clarity. Usage of `date_range` will continue to work.
58 lines
No EOL
2.1 KiB
YAML
58 lines
No EOL
2.1 KiB
YAML
# This example downloads the entirety of a channel (not limited to YouTube).
|
|
# Files will be stored in the form of:
|
|
#
|
|
# /tv_shows
|
|
# /Season 2021
|
|
# s2021.e031701 - Pattys Day Video-thumb.jpg
|
|
# s2021.e031701 - Pattys Day Video.mp4
|
|
# s2021.e031701 - Pattys Day Video.nfo
|
|
# s2021.e031702 - Second Pattys Day Video-thumb.jpg
|
|
# s2021.e031702 - Second Pattys Day Video.mp4
|
|
# s2021.e031702 - Second Pattys Day Video.nfo
|
|
# /Season 2022
|
|
# s2022.e122501 - Merry Christmas-thumb.jpg
|
|
# s2022.e122501 - Merry Christmas.mp4
|
|
# s2022.e122501 - Merry Christmas.nfo
|
|
# poster.jpg
|
|
# fanart.jpg
|
|
# tvshow.nfo
|
|
#
|
|
# The idea is to use dates as numerics to represent season and episode numbers.
|
|
|
|
# Overrides to the prebuilt presets
|
|
__preset__:
|
|
overrides:
|
|
tv_show_directory: "/tv_shows" # Root folder of all ytdl-sub TV Shows
|
|
|
|
# For 'Only Recent' preset, only keep vids within this range and limit
|
|
only_recent_date_range: "2months"
|
|
only_recent_max_files: 30
|
|
|
|
# Choose the player you intend to use by setting the top-level key to be either:
|
|
# - Plex TV Show by Date:
|
|
# - Jellyfin TV Show by Date:
|
|
# - Kodi TV Show by Date:
|
|
Plex TV Show by Date:
|
|
|
|
# Sets genre tag to "Documentaries"
|
|
= Documentaries:
|
|
"NOVA PBS": "https://www.youtube.com/@novapbs"
|
|
"National Geographic": "https://www.youtube.com/@NatGeo"
|
|
"Cosmos - What If": "https://www.youtube.com/playlist?list=PLZdXRHYAVxTJno6oFF9nLGuwXNGYHmE8U"
|
|
|
|
# Sets genre tag to "Kids", "TV-Y" for content rating
|
|
= Kids | = TV-Y:
|
|
"Jake Trains": "https://www.youtube.com/@JakeTrains"
|
|
"Kids Toys Play": "https://www.youtube.com/@KidsToysPlayChannel"
|
|
|
|
# Sets genre tag to "Music"
|
|
= Music:
|
|
# Subscriptions can support multiple urls and store in the same
|
|
# TV Show
|
|
"Rick Beato":
|
|
- "https://www.youtube.com/@RickBeato"
|
|
- "https://www.youtube.com/@rickbeato240"
|
|
|
|
# Set "News" for genre, use `Only Recent` preset to only store videos uploaded recently
|
|
= News | Only Recent:
|
|
"BBC News": "https://www.youtube.com/@BBCNews" |