[pornhd] Add support for ISO-3166 subpages (Fixes #2088)
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 5 Jan 2014 02:12:57 +0000 (03:12 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 5 Jan 2014 02:13:10 +0000 (03:13 +0100)
youtube_dl/extractor/pornhd.py

index 71abd5013bf272ffbb2812a87a6838fd3aeedd7e..e9ff8d1af893c8e22830bbfd41d37b56d5815c9a 100644 (file)
@@ -5,7 +5,7 @@ from ..utils import compat_urllib_parse
 
 
 class PornHdIE(InfoExtractor):
-    _VALID_URL = r'(?:http://)?(?:www\.)?pornhd\.com/videos/(?P<video_id>[0-9]+)/(?P<video_title>.+)'
+    _VALID_URL = r'(?:http://)?(?:www\.)?pornhd\.com/(?:[a-z]{2,4}/)?videos/(?P<video_id>[0-9]+)/(?P<video_title>.+)'
     _TEST = {
         u'url': u'http://www.pornhd.com/videos/1962/sierra-day-gets-his-cum-all-over-herself-hd-porn-video',
         u'file': u'1962.flv',