diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-07-17 16:56:39 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-07-17 16:56:39 +0700 |
commit | 7cdfc4c90fd4f913a96e4493a49af50189b26480 (patch) | |
tree | 8339c137e99823dc9cb506fa05ecc15001ea1dc3 /youtube_dl | |
parent | af21f56f980e22086ac734cf266141c7a9ff21ce (diff) |
[mtvservices] Strip description
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/mtv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index dd0639589..f3ec2ebbc 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: |