]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[telecinco] Fix extraction (refs #24195)
authorSergey M․ <dstftw@gmail.com>
Sat, 29 Feb 2020 18:04:51 +0000 (01:04 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 29 Feb 2020 18:04:51 +0000 (01:04 +0700)
youtube_dl/extractor/telecinco.py

index d37e1b0557cf3ba241a25e7e56d28c8dc679b1d0..d79ab1e82cd79194cbf88fe3ff0ca401084a4cec 100644 (file)
@@ -135,7 +135,7 @@ class TelecincoIE(InfoExtractor):
         display_id = self._match_id(url)
         webpage = self._download_webpage(url, display_id)
         article = self._parse_json(self._search_regex(
-            r'window\.\$REACTBASE_STATE\.article\s*=\s*({.+})',
+            r'window\.\$REACTBASE_STATE\.article(?:_multisite)?\s*=\s*({.+})',
             webpage, 'article'), display_id)['article']
         title = article.get('title')
         description = clean_html(article.get('leadParagraph'))