1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-09 13:32:54 +08:00
This commit is contained in:
mr-sketchy 2017-09-24 11:18:29 -07:00
commit cf3e9c4dc2
2 changed files with 2 additions and 1 deletions

View File

@ -230,3 +230,4 @@ Ashutosh Chaudhary
John Dong John Dong
Tatsuyuki Ishi Tatsuyuki Ishi
Daniel Weber Daniel Weber
Kay Bouché

View File

@ -222,7 +222,7 @@ class XHamsterEmbedIE(InfoExtractor):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
video_url = self._search_regex( video_url = self._search_regex(
r'href="(https?://xhamster\.com/movies/%s/[^"]*\.html[^"]*)"' % video_id, r'href="(https?://xhamster\.com/(?:movies/{0}/[^"]*\.html|videos/[^/]*-{0})[^"]*)"'.format(video_id),
webpage, 'xhamster url', default=None) webpage, 'xhamster url', default=None)
if not video_url: if not video_url: