From 6aa12bf34cde5edf683390a95ff792e53e57cdb1 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 8 Jan 2019 10:16:58 +0800 Subject: [PATCH] [libsyn] fix extracting the release date The "Released:" text was removed from the page but the release_date JSON data field has the same info. --- youtube_dl/extractor/libsyn.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/extractor/libsyn.py b/youtube_dl/extractor/libsyn.py index a1f748c7b..51ce03753 100644 --- a/youtube_dl/extractor/libsyn.py +++ b/youtube_dl/extractor/libsyn.py @@ -60,8 +60,6 @@ class LibsynIE(InfoExtractor): if description: # Strip non-breaking and normal spaces description = description.replace('\u00A0', ' ').strip() - release_date = unified_strdate(self._search_regex( - r'
Released: ([^<]+)<', webpage, 'release date', fatal=False)) data_json = self._search_regex(r'var\s+playlistItem\s*=\s*(\{.*?\});\n', webpage, 'JSON data block') data = json.loads(data_json) @@ -75,6 +73,7 @@ class LibsynIE(InfoExtractor): }] thumbnail = data.get('thumbnail_url') duration = parse_duration(data.get('duration')) + release_date = unified_strdate(data['release_date']) return { 'id': video_id,