mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2024-12-24 22:11:48 +01:00
[iheart] clean HTML tags from episode description
This commit is contained in:
parent
83db801cbf
commit
745db8899d
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
|
clean_html,
|
||||||
clean_podcast_url,
|
clean_podcast_url,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
str_or_none,
|
str_or_none,
|
||||||
@ -18,7 +19,7 @@ class IHeartRadioBaseIE(InfoExtractor):
|
|||||||
def _extract_episode(self, episode):
|
def _extract_episode(self, episode):
|
||||||
return {
|
return {
|
||||||
'thumbnail': episode.get('imageUrl'),
|
'thumbnail': episode.get('imageUrl'),
|
||||||
'description': episode.get('description'),
|
'description': clean_html(episode.get('description')),
|
||||||
'timestamp': int_or_none(episode.get('startDate'), 1000),
|
'timestamp': int_or_none(episode.get('startDate'), 1000),
|
||||||
'duration': int_or_none(episode.get('duration')),
|
'duration': int_or_none(episode.get('duration')),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user