]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/nextmedia.py
New upstream version 2020.07.28
[youtubedl] / youtube_dl / extractor / nextmedia.py
index 680f03aad4b318a70806555ac14d57a4bdfd05e0..7bd1290bf0cab1e97145fcac41495c5f9e534213 100644 (file)
@@ -180,8 +180,8 @@ class AppleDailyIE(NextMediaIE):
     _URL_PATTERN = r'\{url: \'(.+)\'\}'
 
     def _fetch_title(self, page):
-        return (self._html_search_regex(r'<h1 id="h1">([^<>]+)</h1>', page, 'news title', default=None) or
-                self._html_search_meta('description', page, 'news title'))
+        return (self._html_search_regex(r'<h1 id="h1">([^<>]+)</h1>', page, 'news title', default=None)
+                or self._html_search_meta('description', page, 'news title'))
 
     def _fetch_thumbnail(self, page):
         return self._html_search_regex(r"setInitialImage\(\'([^']+)'\)", page, 'video thumbnail', fatal=False)