From: MikeCol Date: Fri, 22 Aug 2014 20:17:07 +0000 (+0200) Subject: changed _VALID_URL to allow for country specific prefixes X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=68909f0c4ec1722016b6d090c5a851d1f6013de8;p=youtube-dl changed _VALID_URL to allow for country specific prefixes --- diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index 5374495f9..00b6d1eba 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/youtube_dl/extractor/xhamster.py @@ -14,7 +14,7 @@ from ..utils import ( class XHamsterIE(InfoExtractor): """Information Extractor for xHamster""" - _VALID_URL = r'http://(?:www\.)?xhamster\.com/movies/(?P[0-9]+)/(?P.+?)\.html(?:\?.*)?' + _VALID_URL = r'http://(?:.+?\.)?xhamster\.com/movies/(?P[0-9]+)/(?P.+?)\.html(?:\?.*)?' _TESTS = [ { 'url': 'http://xhamster.com/movies/1509445/femaleagent_shy_beauty_takes_the_bait.html',