From 7384c00713d2b4f4209d512ade2b0a2c263b31a6 Mon Sep 17 00:00:00 2001 From: meeb Date: Tue, 12 Dec 2023 16:28:26 +1100 Subject: [PATCH] fix typo in sponsorblock categories, remove dupe metadata flags, related to #362 --- tubesync/sync/youtube.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py index bf3e9f5..cdf2647 100644 --- a/tubesync/sync/youtube.py +++ b/tubesync/sync/youtube.py @@ -124,18 +124,16 @@ def download_media(url, media_format, extension, output_file, info_json, sponsor_categories = [] sbopt = { 'key': 'SponsorBlock', - 'categories': [sponsor_categories] + 'categories': sponsor_categories } ffmdopt = { 'key': 'FFmpegMetadata', - 'add_chapters': True, - 'add_metadata': True + 'add_chapters': embed_metadata, + 'add_metadata': embed_metadata } opts = get_yt_opts() if embed_thumbnail: ytopts['postprocessors'].append({'key': 'EmbedThumbnail'}) - if embed_metadata: - ffmdopt["add_metadata"] = True if skip_sponsors: ytopts['postprocessors'].append(sbopt) ytopts['postprocessors'].append(ffmdopt)