projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
622d191
)
[mtv] Fix description extraction (Closes #8962)
author
Sergey M․
<dstftw@gmail.com>
Thu, 24 Mar 2016 16:23:31 +0000
(22:23 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 24 Mar 2016 16:23:31 +0000
(22:23 +0600)
youtube_dl/extractor/mtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mtv.py
b/youtube_dl/extractor/mtv.py
index ed068365d3d4936d35e2e62146f1dcbec750728b..824bbcb4e6d58d3856e521c6de055346164dd1db 100644
(file)
--- 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: