commit: e52e8b8111cf7ca27daef184bacd926865e951b1
parent d231b56717c73ee597d2e077d11b69ed48a1b02d
Author: dirkf <fieldhouse@gmx.net>
Date: Mon, 15 Aug 2022 16:45:04 +0100
[postprocessor] Don't replace existing value with null metadata parsed from title
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/youtube_dl/postprocessor/metadatafromtitle.py b/youtube_dl/postprocessor/metadatafromtitle.py
@@ -40,6 +40,8 @@ class MetadataFromTitlePP(PostProcessor):
% self._titleformat)
return [], info
for attribute, value in match.groupdict().items():
+ if value is None:
+ continue
info[attribute] = value
self._downloader.to_screen(
'[fromtitle] parsed %s: %s'