mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[miomio] Adapt to the new API and update _TESTS
The test case is from #9680
This commit is contained in:
		| @@ -25,10 +25,7 @@ class MioMioIE(InfoExtractor): | |||||||
|             'title': '【SKY】字幕 铠武昭和VS平成 假面骑士大战FEAT战队 魔星字幕组 字幕', |             'title': '【SKY】字幕 铠武昭和VS平成 假面骑士大战FEAT战队 魔星字幕组 字幕', | ||||||
|             'duration': 5923, |             'duration': 5923, | ||||||
|         }, |         }, | ||||||
|         'params': { |         'skip': 'Unable to load videos', | ||||||
|             # The server provides broken file |  | ||||||
|             'skip_download': True, |  | ||||||
|         } |  | ||||||
|     }, { |     }, { | ||||||
|         'url': 'http://www.miomio.tv/watch/cc184024/', |         'url': 'http://www.miomio.tv/watch/cc184024/', | ||||||
|         'info_dict': { |         'info_dict': { | ||||||
| @@ -47,16 +44,12 @@ class MioMioIE(InfoExtractor): | |||||||
|         'skip': 'Unable to load videos', |         'skip': 'Unable to load videos', | ||||||
|     }, { |     }, { | ||||||
|         # new 'h5' player |         # new 'h5' player | ||||||
|         'url': 'http://www.miomio.tv/watch/cc273295/', |         'url': 'http://www.miomio.tv/watch/cc273997/', | ||||||
|         'md5': '', |         'md5': '0b27a4b4495055d826813f8c3a6b2070', | ||||||
|         'info_dict': { |         'info_dict': { | ||||||
|             'id': '273295', |             'id': '273997', | ||||||
|             'ext': 'mp4', |             'ext': 'mp4', | ||||||
|             'title': 'アウト×デラックス 20160526', |             'title': 'マツコの知らない世界【劇的進化SP!ビニール傘&冷凍食品2016】 1_2 - 16 05 31', | ||||||
|         }, |  | ||||||
|         'params': { |  | ||||||
|             # intermittent HTTP 500 |  | ||||||
|             'skip_download': True, |  | ||||||
|         }, |         }, | ||||||
|     }] |     }] | ||||||
|  |  | ||||||
| @@ -116,7 +109,7 @@ class MioMioIE(InfoExtractor): | |||||||
|             player_webpage = self._download_webpage( |             player_webpage = self._download_webpage( | ||||||
|                 player_url, video_id, |                 player_url, video_id, | ||||||
|                 note='Downloading player webpage', headers={'Referer': url}) |                 note='Downloading player webpage', headers={'Referer': url}) | ||||||
|             entries = self._parse_html5_media_entries(player_url, player_webpage) |             entries = self._parse_html5_media_entries(player_url, player_webpage, video_id) | ||||||
|             http_headers = {'Referer': player_url} |             http_headers = {'Referer': player_url} | ||||||
|         else: |         else: | ||||||
|             http_headers = {'Referer': 'http://www.miomio.tv%s' % mioplayer_path} |             http_headers = {'Referer': 'http://www.miomio.tv%s' % mioplayer_path} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
					Yen Chi Hsuan