1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[mtv] Fix description extraction (Closes #8962)

This commit is contained in:
Sergey M․ 2016-03-24 22:23:31 +06:00
parent 622d19160b
commit 5767b4eeae

View file

@ -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: