From 0e8b2c2ce65716ea26f829546a178d002dd6b904 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 11 Apr 2025 18:21:33 +0300 Subject: [PATCH] Updated YTDL_OPTIONS Cookbook (markdown) --- YTDL_OPTIONS-Cookbook.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/YTDL_OPTIONS-Cookbook.md b/YTDL_OPTIONS-Cookbook.md index 526c873..7c099ba 100644 --- a/YTDL_OPTIONS-Cookbook.md +++ b/YTDL_OPTIONS-Cookbook.md @@ -4,14 +4,19 @@ Here you can find various useful configurations that can be set via the `YTDL_OP Embeds English subtitles and chapter markers (for videos that have them), changes the permissions on the downloaded video, and sets the file modification timestamp to the date of when it was downloaded. -```json -{"writesubtitles":true,"subtitleslangs":["en","-live_chat"],"updatetime":false,"postprocessors":[{"key":"Exec","exec_cmd":"chmod 0664","when":"after_move"},{"key":"FFmpegEmbedSubtitle","already_have_subtitle":false},{"key":"FFmpegMetadata","add_chapters":true}]} +```yaml + environment: + - 'YTDL_OPTIONS={"writesubtitles":true,"subtitleslangs":["en","-live_chat"],"updatetime":false,"postprocessors":[{"key":"Exec","exec_cmd":"chmod 0664","when":"after_move"},{"key":"FFmpegEmbedSubtitle","already_have_subtitle":false},{"key":"FFmpegMetadata","add_chapters":true}]}' ``` ### Automatically marking MeTube downloads with SponsorBlock chapters +Contributed by [@loomweaver](https://github.com/loomweaver). + Mimics the command `yt-dlp --sponsorblock-mark sponsor,selfpromo,intro,outro,poi_highlight`. +NOTE: due to the complex usage of quotes here (both `"` and `'` are used), it's advisable to put it in a file and point `YTDL_OPTIONS_FILE` to it, rather than trying to configure it via `YTDL_OPTIONS`. + ```json {"postprocessors": [{"api":"https://sponsor.ajay.app/","categories": ["intro", "outro",