Browse Source

[xhamsterembed] Fix extraction (closes #14308)

master
Sergey M․ 7 years ago
parent
commit
db96252831
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/xhamster.py

2
youtube_dl/extractor/xhamster.py

@ -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:

Loading…
Cancel
Save