1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-26 04:02:11 +00:00

[pornhub] Fix URL regexp

This commit is contained in:
Philipp Hagemeister 2013-12-11 09:22:08 +01:00
parent fca1ef19c1
commit 00381b4ccb

View file

@ -12,7 +12,7 @@ from ..aes import (
) )
class PornHubIE(InfoExtractor): class PornHubIE(InfoExtractor):
_VALID_URL = r'^(?:https?://)?(?:www\.)?(?P<url>pornhub\.com/view_video\.php\?viewkey=(?P<videoid>[0-9]+))' _VALID_URL = r'^(?:https?://)?(?:www\.)?(?P<url>pornhub\.com/view_video\.php\?viewkey=(?P<videoid>[0-9a-f]+))'
_TEST = { _TEST = {
u'url': u'http://www.pornhub.com/view_video.php?viewkey=648719015', u'url': u'http://www.pornhub.com/view_video.php?viewkey=648719015',
u'file': u'648719015.mp4', u'file': u'648719015.mp4',