aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-04-23 04:03:11 +0700
committerSergey M․ <dstftw@gmail.com>2018-04-23 04:03:11 +0700
commit99036a1298089068dcf80c0985bfcc3f8c24f281 (patch)
tree399048234fcdd770a83bbe9d0171af6f092d888e
parent171625469ab1b2a4dc99ed173a10be45e7fc13d6 (diff)
[pornflip] Relax _VALID_URL (closes #16258)
-rw-r--r--youtube_dl/extractor/pornflip.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/pornflip.py b/youtube_dl/extractor/pornflip.py
index ee04936e1..025985fbc 100644
--- a/youtube_dl/extractor/pornflip.py
+++ b/youtube_dl/extractor/pornflip.py
@@ -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>[^/?#&]+)'
_TESTS = [{
'url': 'https://www.pornflip.com/v/wz7DfNhMmep',
'md5': '98c46639849145ae1fd77af532a9278c',
@@ -40,6 +40,9 @@ class PornFlipIE(InfoExtractor):
}, {
'url': 'https://www.pornflip.com/embed/EkRD6-vS2-s',
'only_matching': True,
+ }, {
+ 'url': 'https://www.pornflip.com/v/NG9q6Pb_iK8',
+ 'only_matching': True,
}]
def _real_extract(self, url):