summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/vk.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/vk.py')
-rw-r--r--gallery_dl/extractor/vk.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/gallery_dl/extractor/vk.py b/gallery_dl/extractor/vk.py
index 95eeafe..ea034a7 100644
--- a/gallery_dl/extractor/vk.py
+++ b/gallery_dl/extractor/vk.py
@@ -24,6 +24,13 @@ class VkExtractor(Extractor):
root = "https://vk.com"
request_interval = (0.5, 1.5)
+ def _init(self):
+ self.offset = text.parse_int(self.config("offset"))
+
+ def skip(self, num):
+ self.offset += num
+ return num
+
def items(self):
sub = re.compile(r"/imp[fg]/").sub
sizes = "wzyxrqpo"
@@ -75,7 +82,7 @@ class VkExtractor(Extractor):
"al" : "1",
"direction": "1",
"list" : photos_id,
- "offset" : 0,
+ "offset" : self.offset,
}
while True: