[pornhub] Extend _VALID_URL (closes #12996)
authorSergey M․ <dstftw@gmail.com>
Fri, 5 May 2017 19:46:37 +0000 (02:46 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 5 May 2017 19:46:37 +0000 (02:46 +0700)
youtube_dl/extractor/pornhub.py

index b25f1f193fc7b1590d57966e7c819d16a4b43cd0..1dcc8df00b4c2eb2da3b2719a35d874eb290c4ed 100644 (file)
@@ -33,7 +33,7 @@ class PornHubIE(InfoExtractor):
     _VALID_URL = r'''(?x)
                     https?://
                         (?:
-                            (?:[a-z]+\.)?pornhub\.com/(?:view_video\.php\?viewkey=|embed/)|
+                            (?:[a-z]+\.)?pornhub\.com/(?:(?:view_video\.php|video/show)\?viewkey=|embed/)|
                             (?:www\.)?thumbzilla\.com/video/
                         )
                         (?P<id>[\da-z]+)
@@ -97,6 +97,9 @@ class PornHubIE(InfoExtractor):
     }, {
         'url': 'https://www.thumbzilla.com/video/ph56c6114abd99a/horny-girlfriend-sex',
         'only_matching': True,
+    }, {
+        'url': 'http://www.pornhub.com/video/show?viewkey=648719015',
+        'only_matching': True,
     }]
 
     @staticmethod