Skip to content

Commit

Permalink
[itv] clean description from HTML tags (closes ytdl-org#27399)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine authored and ThirumalaiK committed Jan 28, 2021
1 parent 9418042 commit a37fd48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/itv.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
from .common import InfoExtractor
from .brightcove import BrightcoveNewIE
from ..utils import (
clean_html,
determine_ext,
extract_attributes,
get_element_by_class,
JSON_LD_RE,
merge_dicts,
parse_duration,
smuggle_url,
strip_or_none,
url_or_none,
)

Expand Down Expand Up @@ -146,7 +146,7 @@ def _real_extract(self, url):
'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)


Expand Down

0 comments on commit a37fd48

Please sign in to comment.