From 34c0f95db273ac5e7a7f8a6d23a3f90ceadf4695 Mon Sep 17 00:00:00 2001 From: Slava Shklyaev Date: Tue, 2 Jun 2015 12:56:36 +0300 Subject: [PATCH] [nova] Remove html tags from description --- youtube_dl/extractor/nova.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/nova.py b/youtube_dl/extractor/nova.py index 30c64aaf8..140312f9c 100644 --- a/youtube_dl/extractor/nova.py +++ b/youtube_dl/extractor/nova.py @@ -4,7 +4,7 @@ from __future__ import unicode_literals import re from .common import InfoExtractor -from ..utils import determine_ext +from ..utils import clean_html, determine_ext class NovaIE(InfoExtractor): @@ -42,7 +42,7 @@ class NovaIE(InfoExtractor): 'display_id': '5591-policie-modrava-15-dil-blondynka-na-hrbitove', 'ext': 'mp4', 'title': 'Policie Modrava - 15. díl - Blondýnka na hřbitově', - 'description': 'md5:d804ba6b30bc7da2705b1fea961bddfe', + 'description': 'md5:dc24e50be5908df83348e50d1431295e', 'thumbnail': 're:^https?://.*\.(?:jpg)', }, 'params': { @@ -140,7 +140,7 @@ class NovaIE(InfoExtractor): video_url = video_url.replace('&{}:'.format(ext), '') title = mediafile.get('meta', {}).get('title') or self._og_search_title(webpage) - description = self._og_search_description(webpage) + description = clean_html(self._og_search_description(webpage, default=None)) thumbnail = config.get('poster') mobj = None -- 2.39.5