logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 745db8899d77c56bf14443be60970aed1d9e2bdd
parent 83db801cbf35c130558b48f338948e0d3d3d871f
Author: Remita Amine <remitamine@gmail.com>
Date:   Mon,  4 Jan 2021 09:59:20 +0100

[iheart] clean HTML tags from episode description

Diffstat:

Myoutube_dl/extractor/iheart.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/iheart.py b/youtube_dl/extractor/iheart.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( + clean_html, clean_podcast_url, int_or_none, str_or_none, @@ -18,7 +19,7 @@ class IHeartRadioBaseIE(InfoExtractor): def _extract_episode(self, episode): return { 'thumbnail': episode.get('imageUrl'), - 'description': episode.get('description'), + 'description': clean_html(episode.get('description')), 'timestamp': int_or_none(episode.get('startDate'), 1000), 'duration': int_or_none(episode.get('duration')), }