youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit db96252831e24ae040de92f4c6668d3eaef82165
parent 8b389f7e3ce4466824abc7ce2aaf657abf34a682
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 24 Sep 2017 19:23:08 +0700

[xhamsterembed] Fix extraction (closes #14308)

Diffstat:
Myoutube_dl/extractor/xhamster.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/xhamster.py b/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: