mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[nbc:news] Remove unnecessary compat_str
This commit is contained in:
		| @@ -3,10 +3,7 @@ from __future__ import unicode_literals | |||||||
| import re | import re | ||||||
|  |  | ||||||
| from .common import InfoExtractor | from .common import InfoExtractor | ||||||
| from ..compat import ( | from ..compat import compat_HTTPError | ||||||
|     compat_str, |  | ||||||
|     compat_HTTPError, |  | ||||||
| ) |  | ||||||
| from ..utils import ( | from ..utils import ( | ||||||
|     ExtractorError, |     ExtractorError, | ||||||
|     find_xpath_attr, |     find_xpath_attr, | ||||||
| @@ -189,7 +186,7 @@ class NBCNewsIE(InfoExtractor): | |||||||
|                 'title': info.find('headline').text, |                 'title': info.find('headline').text, | ||||||
|                 'ext': 'flv', |                 'ext': 'flv', | ||||||
|                 'url': find_xpath_attr(info, 'media', 'type', 'flashVideo').text, |                 'url': find_xpath_attr(info, 'media', 'type', 'flashVideo').text, | ||||||
|                 'description': compat_str(info.find('caption').text), |                 'description': info.find('caption').text, | ||||||
|                 'thumbnail': find_xpath_attr(info, 'media', 'type', 'thumbnail').text, |                 'thumbnail': find_xpath_attr(info, 'media', 'type', 'thumbnail').text, | ||||||
|             } |             } | ||||||
|         else: |         else: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․