[mtv] Fix description extraction (Closes #8962)
This commit is contained in:
		| @@ -17,6 +17,7 @@ from ..utils import ( | |||||||
|     unescapeHTML, |     unescapeHTML, | ||||||
|     url_basename, |     url_basename, | ||||||
|     RegexNotFoundError, |     RegexNotFoundError, | ||||||
|  |     xpath_text, | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -130,11 +131,7 @@ class MTVServicesInfoExtractor(InfoExtractor): | |||||||
|             message += item.text |             message += item.text | ||||||
|             raise ExtractorError(message, expected=True) |             raise ExtractorError(message, expected=True) | ||||||
|  |  | ||||||
|         description_node = itemdoc.find('description') |         description = xpath_text(itemdoc, 'description') | ||||||
|         if description_node is not None: |  | ||||||
|             description = description_node.text.strip() |  | ||||||
|         else: |  | ||||||
|             description = None |  | ||||||
|  |  | ||||||
|         title_el = None |         title_el = None | ||||||
|         if title_el is None: |         if title_el is None: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․