From 9675cbe988747eca85a83f8e71b976856fabdc62 Mon Sep 17 00:00:00 2001 From: Pawel Derehajlo Date: Wed, 21 Aug 2024 23:52:38 +0200 Subject: [PATCH] fixed: Regression causing playlist output format to be applied to every video --- app/ytdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ytdl.py b/app/ytdl.py index 1140061..a1af68a 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -299,7 +299,7 @@ async def __add_entry(self, entry, quality, format, folder, custom_name_prefix, return error_message output = self.config.OUTPUT_TEMPLATE if len(custom_name_prefix) == 0 else f'{custom_name_prefix}.{self.config.OUTPUT_TEMPLATE}' output_chapter = self.config.OUTPUT_TEMPLATE_CHAPTER - if 'playlist' in entry: + if 'playlist' in entry and entry['playlist'] is not None: if len(self.config.OUTPUT_TEMPLATE_PLAYLIST): output = self.config.OUTPUT_TEMPLATE_PLAYLIST