[pornhub] Fix URL regexp
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 11 Dec 2013 08:22:08 +0000 (09:22 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 11 Dec 2013 08:22:08 +0000 (09:22 +0100)
youtube_dl/extractor/pornhub.py

index 8b3471919565d4c7044d51eb24e8ef01cc8e77fc..d9135c6b929765e87b13e58f6fd6af5567c55199 100644 (file)
@@ -12,7 +12,7 @@ from ..aes import (
 )
 
 class PornHubIE(InfoExtractor):
-    _VALID_URL = r'^(?:https?://)?(?:www\.)?(?P<url>pornhub\.com/view_video\.php\?viewkey=(?P<videoid>[0-9]+))'
+    _VALID_URL = r'^(?:https?://)?(?:www\.)?(?P<url>pornhub\.com/view_video\.php\?viewkey=(?P<videoid>[0-9a-f]+))'
     _TEST = {
         u'url': u'http://www.pornhub.com/view_video.php?viewkey=648719015',
         u'file': u'648719015.mp4',