Browse Source

[telecinco] Fix extraction (refs #24195)

master
Sergey M․ 5 years ago
parent
commit
f8cbd8c963
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/telecinco.py

+ 1
- 1
youtube_dl/extractor/telecinco.py View 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'))


Loading…
Cancel
Save