فهرست منبع

[postprocessor] Don't replace existing value with null metadata parsed from title

dirkf 3 سال پیش
والد
کامیت
e52e8b8111
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      youtube_dl/postprocessor/metadatafromtitle.py

+ 2 - 0
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'