diff options
author | dirkf <[email protected]> | 2022-08-15 16:45:04 +0100 |
---|---|---|
committer | dirkf <[email protected]> | 2022-08-15 16:45:04 +0100 |
commit | e52e8b8111cf7ca27daef184bacd926865e951b1 (patch) | |
tree | 55831b2972c24bac8ed209b41db77ae55756a254 | |
parent | d231b56717c73ee597d2e077d11b69ed48a1b02d (diff) | |
download | youtube-dl-e52e8b8111cf7ca27daef184bacd926865e951b1.tar.gz youtube-dl-e52e8b8111cf7ca27daef184bacd926865e951b1.zip |
[postprocessor] Don't replace existing value with null metadata parsed from title
-rw-r--r-- | youtube_dl/postprocessor/metadatafromtitle.py | 2 |
1 files changed, 2 insertions, 0 deletions
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' |