]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[cda] Fix extraction (closes #13935)
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 19 Aug 2017 13:44:47 +0000 (21:44 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 19 Aug 2017 13:44:47 +0000 (21:44 +0800)
ChangeLog
youtube_dl/extractor/cda.py

index 9eab4d1e7a34b573a7bd3582c2ab53e23fb42b74..6c32747c4a5bd56057c70e8435353b47e6c8bff8 100644 (file)
--- 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)
 
 
index 78b7a923c7809a363bf26dfb164dea706c3035f1..0c3af23d58270a9710c54e30a0eee7b375be562c 100755 (executable)
@@ -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: