[tumblr] Dismiss warnings for optional fields (fixes #5202)
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 15 Apr 2015 09:45:28 +0000 (17:45 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 15 Apr 2015 09:45:28 +0000 (17:45 +0800)
youtube_dl/extractor/tumblr.py

index 2a1ae5a717cf7b2af16bf5a1ce3ef7494e28a7a6..828c808a6456b6b99b134cb7ae9d9017de9ad3aa 100644 (file)
@@ -56,6 +56,6 @@ class TumblrIE(InfoExtractor):
             'url': video_url,
             'ext': 'mp4',
             'title': video_title,
-            'description': self._og_search_description(webpage),
-            'thumbnail': self._og_search_thumbnail(webpage),
+            'description': self._og_search_description(webpage, default=None),
+            'thumbnail': self._og_search_thumbnail(webpage, default=None),
         }