1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-22 22:47:55 +01:00

[xhamsterembed] Fix extraction (closes #14308)

This commit is contained in:
Sergey M․ 2017-09-24 19:23:08 +07:00
parent 8b389f7e3c
commit db96252831
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -221,7 +221,7 @@ class XHamsterEmbedIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
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)
if not video_url: