diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py index bf3e9f56..cdf2647b 100644 --- a/tubesync/sync/youtube.py +++ b/tubesync/sync/youtube.py @@ -124,18 +124,16 @@ def hook(event): 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)