From 7932cf67a71f7fd4fea02ee8e1601d7be761e230 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 8 Jan 2019 10:42:39 +0800 Subject: [PATCH] [libsyn] fix extraction of the description The description moved to a JSON API endpoint. --- youtube_dl/extractor/libsyn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/libsyn.py b/youtube_dl/extractor/libsyn.py index a8b58dd6b..077d41edd 100644 --- a/youtube_dl/extractor/libsyn.py +++ b/youtube_dl/extractor/libsyn.py @@ -58,6 +58,9 @@ class LibsynIE(InfoExtractor): description = self._html_search_regex( r'(.+?)

', webpage, 'description', default=None) + if not description: + details = self._download_json('https://html5-player.libsyn.com/embed/getitemdetails?item_id=' + video_id, video_id) + description = self._html_search_regex(r'

(.+?)

', details.get('item_body'), 'description', default=None) if description: # Strip non-breaking and normal spaces description = description.replace('\u00A0', ' ').strip()