From: Yen Chi Hsuan Date: Sat, 19 Aug 2017 13:44:47 +0000 (+0800) Subject: [cda] Fix extraction (closes #13935) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f8f18f332f235bcfa2f8fc161887e0eef283fec0;p=youtube-dl [cda] Fix extraction (closes #13935) --- diff --git a/ChangeLog b/ChangeLog index 9eab4d1e7..6c32747c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ version Core +* [cda] Fix extraction (closes #13935) * [utils] Fix unescapeHTML for misformed string like "&a"" (#13935) diff --git a/youtube_dl/extractor/cda.py b/youtube_dl/extractor/cda.py index 78b7a923c..0c3af23d5 100755 --- a/youtube_dl/extractor/cda.py +++ b/youtube_dl/extractor/cda.py @@ -124,7 +124,7 @@ class CDAIE(InfoExtractor): } def extract_format(page, version): - json_str = self._search_regex( + json_str = self._html_search_regex( r'player_data=(\\?["\'])(?P.+?)\1', page, '%s player_json' % version, fatal=False, group='player_data') if not json_str: