logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: f81dd65ba2c1e7be549e5c8cfe6cbf0f0829edfe
parent ce112a8c19ebcc9d401ff26a5cdcf58ba565901c
Author: Remita Amine <remitamine@gmail.com>
Date:   Sat,  9 Nov 2019 13:11:59 +0100

[extractor/common] clean jwplayer description HTML tags

Diffstat:

Myoutube_dl/extractor/common.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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')),