From: dirkf Date: Mon, 15 Aug 2022 15:45:04 +0000 (+0100) Subject: [postprocessor] Don't replace existing value with null metadata parsed from title X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e52e8b8111cf7ca27daef184bacd926865e951b1;p=youtube-dl [postprocessor] Don't replace existing value with null metadata parsed from title --- diff --git a/youtube_dl/postprocessor/metadatafromtitle.py b/youtube_dl/postprocessor/metadatafromtitle.py index f5c14d974..6cd5bb70f 100644 --- 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'