[pornflip] Extend _VALID_URL (closes #14405)
authorJalaz Kumar <jaykay12@users.noreply.github.com>
Fri, 6 Oct 2017 16:56:31 +0000 (22:26 +0530)
committerSergey M <dstftw@gmail.com>
Fri, 6 Oct 2017 16:56:31 +0000 (23:56 +0700)
youtube_dl/extractor/pornflip.py

index a4a5d390ea0de5e471217151ffba26641b7efae2..ee04936e1a44819301207a362d7aa8242ff49271 100644 (file)
@@ -14,7 +14,7 @@ from ..utils import (
 
 
 class PornFlipIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?pornflip\.com/(?:v|embed)/(?P<id>[0-9A-Za-z]{11})'
+    _VALID_URL = r'https?://(?:www\.)?pornflip\.com/(?:v|embed)/(?P<id>[0-9A-Za-z-]{11})'
     _TESTS = [{
         'url': 'https://www.pornflip.com/v/wz7DfNhMmep',
         'md5': '98c46639849145ae1fd77af532a9278c',
@@ -34,6 +34,12 @@ class PornFlipIE(InfoExtractor):
     }, {
         'url': 'https://www.pornflip.com/embed/wz7DfNhMmep',
         'only_matching': True,
+    }, {
+        'url': 'https://www.pornflip.com/v/EkRD6-vS2-s',
+        'only_matching': True,
+    }, {
+        'url': 'https://www.pornflip.com/embed/EkRD6-vS2-s',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):