[dailymotion] Improve description extraction (closes #16984)
authorbato3 <bato3@bandyci.org>
Wed, 18 Jul 2018 19:04:05 +0000 (21:04 +0200)
committerSergey M <dstftw@gmail.com>
Wed, 18 Jul 2018 19:04:05 +0000 (02:04 +0700)
youtube_dl/extractor/dailymotion.py

index 9a74906cb625f590bd5d1bc8862fc5c652fac52c..8f5f57b98576e5c6bba567439a22f935b5cc7c02 100644 (file)
@@ -144,7 +144,8 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
 
         age_limit = self._rta_search(webpage)
 
-        description = self._og_search_description(webpage) or self._html_search_meta(
+        description = self._og_search_description(
+            webpage, default=None) or self._html_search_meta(
             'description', webpage, 'description')
 
         view_count_str = self._search_regex(