summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/pornhub.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-09-09 01:57:57 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-09-09 01:57:57 -0400
commit3f5483df9075ae526f4c54f4cbe80edeabf6d4cc (patch)
tree6b2194fa03fd58ac35114c0dbec7561612a584b8 /gallery_dl/extractor/pornhub.py
parentd50ba9cfe80f00e02ca9a4714f75699c00e67128 (diff)
New upstream version 1.18.4.upstream/1.18.4
Diffstat (limited to 'gallery_dl/extractor/pornhub.py')
-rw-r--r--gallery_dl/extractor/pornhub.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/gallery_dl/extractor/pornhub.py b/gallery_dl/extractor/pornhub.py
index 61e3d41..f976e82 100644
--- a/gallery_dl/extractor/pornhub.py
+++ b/gallery_dl/extractor/pornhub.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2019 Mike Fährmann
+# Copyright 2019-2021 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -31,7 +31,7 @@ class PornhubGalleryExtractor(PornhubExtractor):
test = (
("https://www.pornhub.com/album/19289801", {
"pattern": r"https://\w+.phncdn.com/pics/albums/\d+/\d+/\d+/\d+/",
- "count": 308,
+ "count": ">= 300",
"keyword": {
"id" : int,
"num" : int,
@@ -60,7 +60,6 @@ class PornhubGalleryExtractor(PornhubExtractor):
def items(self):
data = self.metadata()
- yield Message.Version, 1
yield Message.Directory, data
for num, image in enumerate(self.images(), 1):
url = image["url"]
@@ -146,7 +145,6 @@ class PornhubUserExtractor(PornhubExtractor):
}
data = {"_extractor": PornhubGalleryExtractor}
- yield Message.Version, 1
while True:
page = self.request(
url, method="POST", headers=headers, params=params).text