mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:47:07 -05:00 
			
		
		
		
	Merge pull request #1422 from rzhxeo/xhamster
XHamsterIE: Add support for new URL format (download in hd by default)
This commit is contained in:
		@@ -27,7 +27,7 @@ class XHamsterIE(InfoExtractor):
 | 
			
		||||
        mobj = re.match(self._VALID_URL, url)
 | 
			
		||||
 | 
			
		||||
        video_id = mobj.group('id')
 | 
			
		||||
        mrss_url = 'http://xhamster.com/movies/%s/.html' % video_id
 | 
			
		||||
        mrss_url = 'http://xhamster.com/movies/%s/.html?hd' % video_id
 | 
			
		||||
        webpage = self._download_webpage(mrss_url, video_id)
 | 
			
		||||
 | 
			
		||||
        mobj = re.search(r'\'srv\': \'(?P<server>[^\']*)\',\s*\'file\': \'(?P<file>[^\']+)\',', webpage)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user