projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1716254
)
[pornflip] Relax _VALID_URL (closes #16258)
author
Sergey M․
<dstftw@gmail.com>
Sun, 22 Apr 2018 21:03:11 +0000
(
04:03
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 22 Apr 2018 21:03:11 +0000
(
04:03
+0700)
youtube_dl/extractor/pornflip.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pornflip.py
b/youtube_dl/extractor/pornflip.py
index ee04936e1a44819301207a362d7aa8242ff49271..025985fbcd1558af7f0041cf189a20d0529e65b1 100644
(file)
--- a/
youtube_dl/extractor/pornflip.py
+++ b/
youtube_dl/extractor/pornflip.py
@@
-14,7
+14,7
@@
from ..utils import (
class PornFlipIE(InfoExtractor):
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',
_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/embed/EkRD6-vS2-s',
'only_matching': True,
+ }, {
+ 'url': 'https://www.pornflip.com/v/NG9q6Pb_iK8',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):