merge #6891: [vsco] fix 'JSONDecodeError' (#6887)

This commit is contained in:
Mike Fährmann
2025-01-28 14:46:31 +01:00
2 changed files with 4 additions and 3 deletions

View File

@@ -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 = {