projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af21f56
)
[mtvservices] Strip description
author
Sergey M․
<dstftw@gmail.com>
Sun, 17 Jul 2016 09:56:39 +0000
(16:56 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 17 Jul 2016 09:56:39 +0000
(16:56 +0700)
youtube_dl/extractor/mtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mtv.py
b/youtube_dl/extractor/mtv.py
index dd06395891ac02ce81b40efd471776cb080d328d..f3ec2ebbc5cd6289b760afb50c3fb48da17d3824 100644
(file)
--- 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: