diff options
author | Jalaz Kumar <jaykay12@users.noreply.github.com> | 2017-10-06 22:26:31 +0530 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2017-10-06 23:56:31 +0700 |
commit | 2e2a8e97d53d7759d663be2a1dc3f4108342ea40 (patch) | |
tree | 3477aa62ffc7ce121ec46ef5aabe8a5c924a5985 /youtube_dl/extractor | |
parent | ac93c09ab2c4d099a628c1ed59670bef008db89c (diff) |
[pornflip] Extend _VALID_URL (closes #14405)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/pornflip.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/pornflip.py b/youtube_dl/extractor/pornflip.py index a4a5d390e..ee04936e1 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>[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): |