From 0250841acf15988bd250da250e75432a585d8e05 Mon Sep 17 00:00:00 2001 From: mr-sketchy Date: Sun, 24 Sep 2017 11:15:21 -0700 Subject: [PATCH] new video-id extraction to deal with recent site changes --- youtube_dl/extractor/xhamster.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index c42b59e51..8980d14d8 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/youtube_dl/extractor/xhamster.py @@ -126,6 +126,7 @@ class XHamsterIE(InfoExtractor): video_url = self._search_regex( [r'''file\s*:\s*(?P["'])(?P.+?)(?P=q)''', r'''["'])(?P.+?)(?P=q)\s+class=["']mp4Thumb''', + r'''\S+?)(?P.+?)["']''', r''']+file=(?P["'])(?P.+?)(?P=q)[^>]*>'''], webpage, 'video url', group='mp4', default=None) if video_url and video_url not in format_urls: