fix: premiere video with --live-from-start
This commit is contained in:
parent
b4de0d9eb4
commit
2b02cd1a12
1 changed files with 8 additions and 2 deletions
|
|
@ -306,7 +306,7 @@ class Download:
|
||||||
raise ValueError(msg) # noqa: TRY301
|
raise ValueError(msg) # noqa: TRY301
|
||||||
|
|
||||||
self.logger.info(
|
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:
|
if self.debug:
|
||||||
|
|
@ -336,7 +336,13 @@ class Download:
|
||||||
self.logger.debug(f"Downloading '{self.info.url}' using pre-info.")
|
self.logger.debug(f"Downloading '{self.info.url}' using pre-info.")
|
||||||
_dct: dict = self.info_dict.copy()
|
_dct: dict = self.info_dict.copy()
|
||||||
if isinstance(self.info.extras, dict) and len(self.info.extras) > 0:
|
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)
|
cls.process_ie_result(ie_result=_dct, download=True)
|
||||||
ret: int = cls._download_retcode
|
ret: int = cls._download_retcode
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue