mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 03:03:06 +08:00
[libsyn] fix extracting the JSON data block
The page switched to \r\n Windows line endings.
This commit is contained in:
parent
6aa12bf34c
commit
b46b0ddbd6
@ -61,7 +61,7 @@ class LibsynIE(InfoExtractor):
|
|||||||
# Strip non-breaking and normal spaces
|
# Strip non-breaking and normal spaces
|
||||||
description = description.replace('\u00A0', ' ').strip()
|
description = description.replace('\u00A0', ' ').strip()
|
||||||
|
|
||||||
data_json = self._search_regex(r'var\s+playlistItem\s*=\s*(\{.*?\});\n', webpage, 'JSON data block')
|
data_json = self._search_regex(r'var\s+playlistItem\s*=\s*(\{.*?\});', webpage, 'JSON data block')
|
||||||
data = json.loads(data_json)
|
data = json.loads(data_json)
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
|
Loading…
Reference in New Issue
Block a user