From d844081d19d0c11fcc20f5ecd641615c82c9ef46 Mon Sep 17 00:00:00 2001 From: Logan G Date: Fri, 3 Jan 2025 19:03:32 -0700 Subject: [PATCH] Added comments to sample config --- config-sample.toml | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/config-sample.toml b/config-sample.toml index 8eeedca..50c3f06 100644 --- a/config-sample.toml +++ b/config-sample.toml @@ -1,15 +1,40 @@ +# Specifies the temporary, or work directory. Intermediate files will be put here +# and moved/deleted later when no longer needed. TempDir = "/tmp/" +##################################################################################### +# This will download the 5 most recently uploaded videos, shorts and livestreams. # +# Since YouTube serves using separate video and audio streams, specifying both # +# VideoFormat and AudioFormat will invoke FFmpeg at the end of the download process # +# to merge the two together. In this example, they are merged into mkv. # +##################################################################################### [Group.LinuxYouTubers] -URL = [ "https://www.youtube.com/@DistroTube", "https://www.youtube.com/@MentalOutlaw" ] +URL = [ + "https://www.youtube.com/@DistroTube", + "https://www.youtube.com/@MentalOutlaw" +] + +# See https://pkg.go.dev/github.com/wader/goutubedl#Info for a list of possible placeholders. +# Not all of them will be valid for a particular platform though. OutputDir = "videos/Linux/%Channel%/%Playlist%/" FileName = "%Timestamp% - %Title%.mkv" -CFormat = "matroska" -VideoFormat = "bestvideo[height<=720]" -AudioFormat = "bestaudio" -NumVideos = 5 -SizeLimit = 200000000 +# FFmpeg container format +# See https://ffmpeg.org/ffmpeg-formats.html#Muxers for a full list +# "matroska" is a very safe option for videos as it can accept basically +# any combination of codecs. This is only needed if both VideoFormat and AudioFormat +# are specified, or if extracting audio. +CFormat = "matroska" + +VideoFormat = "bestvideo[height<=720]" # Standard youtube-dl format filter +AudioFormat = "bestaudio" # Same here +NumVideos = 5 +SizeLimit = 200000000 # In bytes + +###################################################################################### +# YTVA also supports other platforms like Odysee. Most of these platforms only serve # +# a single file though, so only "VideoFormat" needs to be specified. # +###################################################################################### [Group.Odysee] URL = [ "https://odysee.com/@DistroTube:2", "https://odysee.com/@AlphaNerd:8" ] OutputDir = "videos/Odysee/%Channel%/" @@ -27,6 +52,13 @@ CFormat = "webm" AudioFormat = "bestaudio" NumVideos = 5 SizeLimit = 10000000 + +# Filters use the same placeholder system as filenames and directories, combined with +# regular expression. +# Name: Filter name, mostly for debugging if unexpected filtering happens +# Input: String input. Placeholder values will be replaced with the relevant video information +# Pattern: Regex Pattern to match +# AllowDeny: true for allowlisting, false for denylisting Filters = [ {Name = "No Shorts", Input = "%Playlist%", Pattern = ".*- Shorts$", AllowDeny = false} ]