From 2b02cd1a126f2fea16ce88188ee8f80360996206 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Sat, 10 Jan 2026 17:29:15 +0300 Subject: [PATCH] fix: premiere video with --live-from-start --- app/library/Download.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/library/Download.py b/app/library/Download.py index 9c5dc2e0..9308b466 100644 --- a/app/library/Download.py +++ b/app/library/Download.py @@ -306,7 +306,7 @@ class Download: raise ValueError(msg) # noqa: TRY301 self.logger.info( - f'Task {self.info.name()}, preset="{self.info.preset}", cookies="{bool(params.get("cookiefile"))}" started.' + f'Download {self.info.name()}, preset="{self.info.preset}", cookies="{bool(params.get("cookiefile"))}" started.' ) if self.debug: @@ -336,7 +336,13 @@ class Download: self.logger.debug(f"Downloading '{self.info.url}' using pre-info.") _dct: dict = self.info_dict.copy() if isinstance(self.info.extras, dict) and len(self.info.extras) > 0: - _dct.update({k: v for k, v in self.info.extras.items() if k not in _dct or not _dct.get(k)}) + _dct.update( + { + k: v + for k, v in self.info.extras.items() + if k not in _dct and v is not None and k not in ("is_live",) + } + ) cls.process_ie_result(ie_result=_dct, download=True) ret: int = cls._download_retcode