1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 02:01:50 +00:00

[cda] Fix extraction (closes #13935)

This commit is contained in:
Yen Chi Hsuan 2017-08-19 21:44:47 +08:00
parent 95f3f7c20a
commit f8f18f332f
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
version <unreleased> version <unreleased>
Core Core
* [cda] Fix extraction (closes #13935)
* [utils] Fix unescapeHTML for misformed string like "&a&quot;" (#13935) * [utils] Fix unescapeHTML for misformed string like "&a&quot;" (#13935)

View file

@ -124,7 +124,7 @@ class CDAIE(InfoExtractor):
} }
def extract_format(page, version): def extract_format(page, version):
json_str = self._search_regex( json_str = self._html_search_regex(
r'player_data=(\\?["\'])(?P<player_data>.+?)\1', page, r'player_data=(\\?["\'])(?P<player_data>.+?)\1', page,
'%s player_json' % version, fatal=False, group='player_data') '%s player_json' % version, fatal=False, group='player_data')
if not json_str: if not json_str: