From: Sergey M․ Date: Sun, 27 Mar 2016 18:21:08 +0000 (+0600) Subject: [pornhub:playlistbase] Use orderedSet X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=8f9a477e7f260d60836843fbe8f75629e3ae8892;p=youtube-dl [pornhub:playlistbase] Use orderedSet --- diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 5a55c25e7..670e9294a 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -12,6 +12,7 @@ from ..compat import ( from ..utils import ( ExtractorError, int_or_none, + orderedSet, sanitized_Request, str_to_int, ) @@ -150,7 +151,7 @@ class PornHubPlaylistBaseIE(InfoExtractor): def _extract_entries(self, webpage): return [ self.url_result('http://www.pornhub.com/%s' % video_url, PornHubIE.ie_key()) - for video_url in set(re.findall( + for video_url in orderedSet(re.findall( r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"', webpage)) ]