aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-03-24 22:23:31 +0600
committerSergey M․ <dstftw@gmail.com>2016-03-24 22:23:31 +0600
commit5767b4eeae997a4ef75e348b46489cbb55126414 (patch)
tree095de349b7c34e219bbb79c6ecbe59140fa932a9 /youtube_dl
parent622d19160bd81161e18c6ce868c359549a4d0413 (diff)
[mtv] Fix description extraction (Closes #8962)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/mtv.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py
index ed068365d..824bbcb4e 100644
--- a/youtube_dl/extractor/mtv.py
+++ b/youtube_dl/extractor/mtv.py
@@ -17,6 +17,7 @@ from ..utils import (
unescapeHTML,
url_basename,
RegexNotFoundError,
+ xpath_text,
)
@@ -130,11 +131,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
message += item.text
raise ExtractorError(message, expected=True)
- description_node = itemdoc.find('description')
- if description_node is not None:
- description = description_node.text.strip()
- else:
- description = None
+ description = xpath_text(itemdoc, 'description')
title_el = None
if title_el is None: