From 7cdfc4c90fd4f913a96e4493a49af50189b26480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 17 Jul 2016 16:56:39 +0700 Subject: [PATCH] [mtvservices] Strip description --- youtube_dl/extractor/mtv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index dd06395891..f3ec2ebbc5 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -15,6 +15,7 @@ from ..utils import ( float_or_none, HEADRequest, sanitized_Request, + strip_or_none, unescapeHTML, url_basename, RegexNotFoundError, @@ -133,7 +134,7 @@ class MTVServicesInfoExtractor(InfoExtractor): message += item.text raise ExtractorError(message, expected=True) - description = xpath_text(itemdoc, 'description') + description = strip_or_none(xpath_text(itemdoc, 'description')) title_el = None if title_el is None: