[mtvservices] Strip description

This commit is contained in:
Sergey M․ 2016-07-17 16:56:39 +07:00
parent af21f56f98
commit 7cdfc4c90f
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -15,6 +15,7 @@
float_or_none,
HEADRequest,
sanitized_Request,
strip_or_none,
unescapeHTML,
url_basename,
RegexNotFoundError,
@ -133,7 +134,7 @@ def _get_video_info(self, itemdoc):
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: