]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] clean jwplayer description HTML tags
authorRemita Amine <remitamine@gmail.com>
Sat, 9 Nov 2019 12:11:59 +0000 (13:11 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 9 Nov 2019 12:11:59 +0000 (13:11 +0100)
youtube_dl/extractor/common.py

index 4a683f6d684c30ff4628c34eda893f0dc5a2eb26..4c2f9303e942e0f6759dfd9bf1574db799b5f68c 100644 (file)
@@ -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')),