changed _VALID_URL to allow for country specific prefixes
authorMikeCol <MikeCol@gmx.net>
Fri, 22 Aug 2014 20:17:07 +0000 (22:17 +0200)
committerMikeCol <MikeCol@gmx.net>
Fri, 22 Aug 2014 20:17:07 +0000 (22:17 +0200)
youtube_dl/extractor/xhamster.py

index 5374495f9b08f4d13fd7552fd612c19339b99e54..00b6d1eba33a6686319d47846c34476ce8b387c7 100644 (file)
@@ -14,7 +14,7 @@ from ..utils import (
 
 class XHamsterIE(InfoExtractor):
     """Information Extractor for xHamster"""
-    _VALID_URL = r'http://(?:www\.)?xhamster\.com/movies/(?P<id>[0-9]+)/(?P<seo>.+?)\.html(?:\?.*)?'
+    _VALID_URL = r'http://(?:.+?\.)?xhamster\.com/movies/(?P<id>[0-9]+)/(?P<seo>.+?)\.html(?:\?.*)?'
     _TESTS = [
         {
             'url': 'http://xhamster.com/movies/1509445/femaleagent_shy_beauty_takes_the_bait.html',