mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 11:21:29 -05:00
[mtv] Fix description extraction (Closes #8962)
This commit is contained in:
parent
622d19160b
commit
5767b4eeae
1 changed files with 2 additions and 5 deletions
|
@ -17,6 +17,7 @@
|
|||
unescapeHTML,
|
||||
url_basename,
|
||||
RegexNotFoundError,
|
||||
xpath_text,
|
||||
)
|
||||
|
||||
|
||||
|
@ -130,11 +131,7 @@ def _get_video_info(self, itemdoc):
|
|||
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:
|
||||
|
|
Loading…
Reference in a new issue