Browse Source

Merge pull request #1422 from rzhxeo/xhamster

XHamsterIE: Add support for new URL format (download in hd by default)
Jaime Marquínez Ferrándiz 12 years ago
parent
commit
cdbccafed9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/xhamster.py

+ 1 - 1
youtube_dl/extractor/xhamster.py

@@ -27,7 +27,7 @@ class XHamsterIE(InfoExtractor):
         mobj = re.match(self._VALID_URL, url)
         mobj = re.match(self._VALID_URL, url)
 
 
         video_id = mobj.group('id')
         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)
         webpage = self._download_webpage(mrss_url, video_id)
 
 
         mobj = re.search(r'\'srv\': \'(?P<server>[^\']*)\',\s*\'file\': \'(?P<file>[^\']+)\',', webpage)
         mobj = re.search(r'\'srv\': \'(?P<server>[^\']*)\',\s*\'file\': \'(?P<file>[^\']+)\',', webpage)