mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	GametrailersIE: make it a subclass of MTVIE to reuse most of the extraction process
This commit is contained in:
		| @@ -49,7 +49,10 @@ class MTVIE(InfoExtractor): | ||||
|         if not m: | ||||
|             raise ExtractorError(u'Cannot transform RTMP url') | ||||
|         base = 'http://mtvnmobile.vo.llnwd.net/kip0/_pxn=1+_pxI0=Ripod-h264+_pxL0=undefined+_pxM0=+_pxK=18639+_pxE=mp4/44620/mtvnorigin/' | ||||
|         return base + m.group('finalid')  | ||||
|         return base + m.group('finalid') | ||||
|  | ||||
|     def _get_thumbnail_url(self, uri, itemdoc): | ||||
|         return 'http://mtv.mtvnimages.com/uri/' + uri | ||||
|  | ||||
|     def _extract_video_url(self, metadataXml): | ||||
|         if '/error_country_block.swf' in metadataXml: | ||||
| @@ -87,7 +90,7 @@ class MTVIE(InfoExtractor): | ||||
|             description = None | ||||
|         video_info.update({'title': itemdoc.find('title').text, | ||||
|                            'id': video_id, | ||||
|                            'thumbnail': 'http://mtv.mtvnimages.com/uri/' + uri, | ||||
|                            'thumbnail': self._get_thumbnail_url(uri, itemdoc), | ||||
|                            'description': description, | ||||
|                            }) | ||||
|         return video_info | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz