mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 10:22:50 +08:00
[libsyn] fix extraction of the description
The description moved to a JSON API endpoint.
This commit is contained in:
parent
058e4d1989
commit
7932cf67a7
@ -58,6 +58,9 @@ class LibsynIE(InfoExtractor):
|
|||||||
description = self._html_search_regex(
|
description = self._html_search_regex(
|
||||||
r'<p\s+id="info_text_body">(.+?)</p>', webpage,
|
r'<p\s+id="info_text_body">(.+?)</p>', webpage,
|
||||||
'description', default=None)
|
'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'<p>(.+?)</p>', details.get('item_body'), 'description', default=None)
|
||||||
if description:
|
if description:
|
||||||
# Strip non-breaking and normal spaces
|
# Strip non-breaking and normal spaces
|
||||||
description = description.replace('\u00A0', ' ').strip()
|
description = description.replace('\u00A0', ' ').strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user