mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-18 02:39:29 +01:00
[mtvservices] Strip description
This commit is contained in:
parent
af21f56f98
commit
7cdfc4c90f
@ -15,6 +15,7 @@
|
|||||||
float_or_none,
|
float_or_none,
|
||||||
HEADRequest,
|
HEADRequest,
|
||||||
sanitized_Request,
|
sanitized_Request,
|
||||||
|
strip_or_none,
|
||||||
unescapeHTML,
|
unescapeHTML,
|
||||||
url_basename,
|
url_basename,
|
||||||
RegexNotFoundError,
|
RegexNotFoundError,
|
||||||
@ -133,7 +134,7 @@ def _get_video_info(self, itemdoc):
|
|||||||
message += item.text
|
message += item.text
|
||||||
raise ExtractorError(message, expected=True)
|
raise ExtractorError(message, expected=True)
|
||||||
|
|
||||||
description = xpath_text(itemdoc, 'description')
|
description = strip_or_none(xpath_text(itemdoc, 'description'))
|
||||||
|
|
||||||
title_el = None
|
title_el = None
|
||||||
if title_el is None:
|
if title_el is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user