commit d53a4af1a49413a38d639aeb7f522c4ebff8f5c8 parent 2e1b92854000662e554413df0c34c1cbc0d7ffc8 Author: Sergey M․ <dstftw@gmail.com> Date: Mon, 30 Nov 2015 03:47:01 +0600 [pornhub:playlist] Allow alphanumeric viewkeys (Closes #7695) Diffstat:
M | youtube_dl/extractor/pornhub.py | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py @@ -147,7 +147,8 @@ class PornHubPlaylistIE(InfoExtractor): entries = [ self.url_result('http://www.pornhub.com/%s' % video_url, 'PornHub') - for video_url in set(re.findall('href="/?(view_video\.php\?viewkey=\d+[^"]*)"', webpage)) + for video_url in set(re.findall( + r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"', webpage)) ] playlist = self._parse_json(