1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 02:01:50 +00:00

[itv] clean description from HTML tags (closes #27399)

This commit is contained in:
Remita Amine 2020-12-13 09:50:20 +01:00
parent d8008dee4f
commit 92d135921f

View file

@ -7,6 +7,7 @@ import re
from .common import InfoExtractor from .common import InfoExtractor
from .brightcove import BrightcoveNewIE from .brightcove import BrightcoveNewIE
from ..utils import ( from ..utils import (
clean_html,
determine_ext, determine_ext,
extract_attributes, extract_attributes,
get_element_by_class, get_element_by_class,
@ -14,7 +15,6 @@ from ..utils import (
merge_dicts, merge_dicts,
parse_duration, parse_duration,
smuggle_url, smuggle_url,
strip_or_none,
url_or_none, url_or_none,
) )
@ -146,7 +146,7 @@ class ITVIE(InfoExtractor):
'formats': formats, 'formats': formats,
'subtitles': subtitles, 'subtitles': subtitles,
'duration': parse_duration(video_data.get('Duration')), 'duration': parse_duration(video_data.get('Duration')),
'description': strip_or_none(get_element_by_class('episode-info__synopsis', webpage)), 'description': clean_html(get_element_by_class('episode-info__synopsis', webpage)),
}, info) }, info)