diff options
author | Remita Amine <remitamine@gmail.com> | 2020-12-13 09:50:20 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-12-13 09:51:03 +0100 |
commit | 92d135921fecac475ef057f7d84067adcb4734a5 (patch) | |
tree | 2849c0cf7f88d02a271d05a8287277876f28d4f9 | |
parent | d8008dee4f8b2d9fb66835aa83023bc681f116f1 (diff) |
[itv] clean description from HTML tags (closes #27399)
-rw-r--r-- | youtube_dl/extractor/itv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/itv.py b/youtube_dl/extractor/itv.py index 08bcc8b68..e86c40b42 100644 --- a/youtube_dl/extractor/itv.py +++ b/youtube_dl/extractor/itv.py @@ -7,6 +7,7 @@ import re from .common import InfoExtractor from .brightcove import BrightcoveNewIE from ..utils import ( + clean_html, determine_ext, extract_attributes, get_element_by_class, @@ -14,7 +15,6 @@ from ..utils import ( merge_dicts, parse_duration, smuggle_url, - strip_or_none, url_or_none, ) @@ -146,7 +146,7 @@ class ITVIE(InfoExtractor): 'formats': formats, 'subtitles': subtitles, '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) |