Skip to content

Commit

Permalink
[pornflip] Extend _VALID_URL (closes #14405)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykay12 authored and dstftw committed Oct 6, 2017
1 parent ac93c09 commit 2e2a8e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion youtube_dl/extractor/pornflip.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


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',
Expand All @@ -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):
Expand Down

0 comments on commit 2e2a8e9

Please sign in to comment.