From: Remita Amine Date: Sat, 9 Nov 2019 12:11:59 +0000 (+0100) Subject: [extractor/common] clean jwplayer description HTML tags X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f81dd65ba2c1e7be549e5c8cfe6cbf0f0829edfe;p=youtube-dl [extractor/common] clean jwplayer description HTML tags --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 4a683f6d6..4c2f9303e 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -2689,7 +2689,7 @@ class InfoExtractor(object): entry = { 'id': this_video_id, 'title': unescapeHTML(video_data['title'] if require_title else video_data.get('title')), - 'description': video_data.get('description'), + 'description': clean_html(video_data.get('description')), 'thumbnail': urljoin(base_url, self._proto_relative_url(video_data.get('image'))), 'timestamp': int_or_none(video_data.get('pubdate')), 'duration': float_or_none(jwplayer_data.get('duration') or video_data.get('duration')),