From ce14167ceee715306bb6ac221e712db3173aae1c Mon Sep 17 00:00:00 2001 From: KuhnChris Date: Sat, 18 Feb 2023 11:38:23 +0100 Subject: [PATCH] formating --- tubesync/sync/youtube.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py index 6e96e50..852e646 100644 --- a/tubesync/sync/youtube.py +++ b/tubesync/sync/youtube.py @@ -102,11 +102,7 @@ def download_media(url, media_format, extension, output_file, info_json, else: log.warn(f'[youtube-dl] unknown event: {str(event)}') hook.download_progress = 0 - # Pending configuration options from PR #338 - #postprocessors.append({ - # 'key': 'SponsorBlock', - # 'categories': [sponsor_categories] - #}) + opts = get_yt_opts() opts.update({ 'format': media_format, @@ -118,13 +114,13 @@ def download_media(url, media_format, extension, output_file, info_json, 'postprocessors': [] } sbopt = { - 'key': 'SponsorBlock', - 'categories': [sponsor_categories] - } + 'key': 'SponsorBlock', + 'categories': [sponsor_categories] + } ffmdopt = { 'key': 'FFmpegMetadata', - 'add_chapters': True, - 'add_metadata': True + 'add_chapters': True, + 'add_metadata': True } opts = get_yt_opts()