diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-03-28 00:21:08 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-03-28 00:21:08 +0600 |
commit | 8f9a477e7f260d60836843fbe8f75629e3ae8892 (patch) | |
tree | e21dc90eac9fcb1729d089ed46db7d92bbc97bdb /youtube_dl/extractor | |
parent | a1cf3e38a34caa333fd9703333ef55e0b3ac5a17 (diff) |
[pornhub:playlistbase] Use orderedSet
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/pornhub.py | 3 |
1 files changed, 2 insertions, 1 deletions
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)) ] |