From 2090e0c544c31298e0dc07514fe08fdc4568da41 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 11 Apr 2025 17:56:48 +0300 Subject: [PATCH] Updated Cookbook (markdown) --- Cookbook.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Cookbook.md b/Cookbook.md index 5cbf565..d999e7c 100644 --- a/Cookbook.md +++ b/Cookbook.md @@ -1,3 +1,25 @@ -Here you can find various useful configurations that can be set via the YTDL_OPTIONS and YTDL_OPTIONS_FILE environment variables. +Here you can find various useful configurations that can be set via the `YTDL_OPTIONS` and `YTDL_OPTIONS_FILE` environment variables. -* [Automatically marking MeTube downloads with SponsorBlock chapters](Cookbook/SponsorBlock) \ No newline at end of file +### Automatically marking MeTube downloads with SponsorBlock chapters + +Mimics the command `yt-dlp --sponsorblock-mark sponsor,selfpromo,intro,outro,poi_highlight`. + +```json +{"postprocessors": [{"api":"https://sponsor.ajay.app/","categories": ["intro", + "outro", + "poi_highlight", + "selfpromo", + "sponsor"], + "key": "SponsorBlock", + "when": "after_filter"}, + {"force_keyframes":false, + "key": "ModifyChapters", + "remove_chapters_patterns": [], + "remove_ranges": [], + "remove_sponsor_segments":"set()", + "sponsorblock_chapter_title": "'[SponsorBlock]: ''%(category_names)l'"}, + {"add_chapters": true, + "add_infojson": "none", + "add_metadata": false, + "key": "FFmpegMetadata"}]} +```