aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2021-01-04 09:59:20 +0100
committerRemita Amine <remitamine@gmail.com>2021-01-04 09:59:20 +0100
commit745db8899d77c56bf14443be60970aed1d9e2bdd (patch)
tree7490c7a99d190481b889fc7a2629c4ef88281c62
parent83db801cbf35c130558b48f338948e0d3d3d871f (diff)
[iheart] clean HTML tags from episode description
-rw-r--r--youtube_dl/extractor/iheart.py3
1 files changed, 2 insertions, 1 deletions
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')),
}