From b46b0ddbd6020e81cc4059e38611bfdc1dd36c6b Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 8 Jan 2019 10:18:47 +0800 Subject: [PATCH] [libsyn] fix extracting the JSON data block The page switched to \r\n Windows line endings. --- youtube_dl/extractor/libsyn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/libsyn.py b/youtube_dl/extractor/libsyn.py index 51ce03753..0ad168826 100644 --- a/youtube_dl/extractor/libsyn.py +++ b/youtube_dl/extractor/libsyn.py @@ -61,7 +61,7 @@ class LibsynIE(InfoExtractor): # Strip non-breaking and normal spaces 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) formats = [{