Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
f8cbd8c9
Unverified
Commit
f8cbd8c9
authored
Mar 01, 2020
by
Sergey M․
Browse files
[telecinco] Fix extraction (refs #24195)
parent
838f051c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
youtube_dl/extractor/telecinco.py
youtube_dl/extractor/telecinco.py
+1
-1
No files found.
youtube_dl/extractor/telecinco.py
View file @
f8cbd8c9
...
...
@@ -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'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment