aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/vsco.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/vsco.py')
-rw-r--r--gallery_dl/extractor/vsco.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/vsco.py b/gallery_dl/extractor/vsco.py
index 922a591..1c0c172 100644
--- a/gallery_dl/extractor/vsco.py
+++ b/gallery_dl/extractor/vsco.py
@@ -70,7 +70,8 @@ class VscoExtractor(Extractor):
def _extract_preload_state(self, url):
page = self.request(url, notfound=self.subcategory).text
- return util.json_loads(text.extr(page, "__PRELOADED_STATE__ = ", "<"))
+ return util.json_loads(text.extr(page, "__PRELOADED_STATE__ = ", "<")
+ .replace('"prevPageToken":undefined,', ''))
def _pagination(self, url, params, token, key, extra=None):
headers = {