aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-08-19 21:44:47 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2017-08-19 21:44:47 +0800
commitf8f18f332f235bcfa2f8fc161887e0eef283fec0 (patch)
tree47fa7461c4e619a5d7984d532c3436a3cbfded45
parent95f3f7c20a05e7ac490e768b8470b20538ef8581 (diff)
[cda] Fix extraction (closes #13935)
-rw-r--r--ChangeLog1
-rwxr-xr-xyoutube_dl/extractor/cda.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9eab4d1e7..6c32747c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
version <unreleased>
Core
+* [cda] Fix extraction (closes #13935)
* [utils] Fix unescapeHTML for misformed string like "&a&quot;" (#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<player_data>.+?)\1', page,
'%s player_json' % version, fatal=False, group='player_data')
if not json_str: