From 745db8899d77c56bf14443be60970aed1d9e2bdd Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Mon, 4 Jan 2021 09:59:20 +0100 Subject: [PATCH] [iheart] clean HTML tags from episode description --- youtube_dl/extractor/iheart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')), }