mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-11-03 19:23:44 +00:00 
			
		
		
		
	using _parse_html5_media_entries to parse video tag
This commit is contained in:
		
							parent
							
								
									95be19d436
								
							
						
					
					
						commit
						a493f10208
					
				@ -34,11 +34,11 @@ class MiaoPaiIE(InfoExtractor):
 | 
				
			|||||||
                                        'title')
 | 
					                                        'title')
 | 
				
			||||||
        regex = r"""<div *class=['"]video_img[^>]*data-url=['"]([^'"]*\.jpg)['"]"""
 | 
					        regex = r"""<div *class=['"]video_img[^>]*data-url=['"]([^'"]*\.jpg)['"]"""
 | 
				
			||||||
        thumbnail = self._html_search_regex(regex, webpage, '')
 | 
					        thumbnail = self._html_search_regex(regex, webpage, '')
 | 
				
			||||||
        regex = r"""<video *[^>]*src=['"]([^'"]*)['"]""",
 | 
					        videos = self._parse_html5_media_entries(url, webpage, video_id)
 | 
				
			||||||
        video_url = self._html_search_regex(regex, webpage, '')
 | 
					        info = videos[0]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return {'id': video_id,
 | 
					        info.update({'id': video_id,
 | 
				
			||||||
                'title': title,
 | 
					                     'title': title,
 | 
				
			||||||
                'url': video_url,
 | 
					                     'thumbnail': thumbnail,
 | 
				
			||||||
                'thumbnail': thumbnail,
 | 
					                     })
 | 
				
			||||||
                }
 | 
					        return info
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user