From: Remita Amine Date: Mon, 4 Jan 2021 08:59:20 +0000 (+0100) Subject: [iheart] clean HTML tags from episode description X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=745db8899d77c56bf14443be60970aed1d9e2bdd;p=youtube-dl [iheart] clean HTML tags from episode description --- diff --git a/youtube_dl/extractor/iheart.py b/youtube_dl/extractor/iheart.py index 7a7295ff4..266c67a76 100644 --- 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')), }