From 194803f3a7b821e0e98d981ab1952c0f3fbf121d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 28 Sep 2022 13:04:32 +0200 Subject: [PATCH] [plurk] fix extraction (#2977) --- gallery_dl/extractor/plurk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/plurk.py b/gallery_dl/extractor/plurk.py index f2e964d0c1..535fae91e3 100644 --- a/gallery_dl/extractor/plurk.py +++ b/gallery_dl/extractor/plurk.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2019-2020 Mike Fährmann +# Copyright 2019-2022 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 @@ -85,7 +85,7 @@ def __init__(self, match): def plurks(self): url = "{}/{}".format(self.root, self.user) page = self.request(url).text - user_id, pos = text.extract(page, '"user_id":', ',') + user_id, pos = text.extract(page, '"page_user": {"id":', ',') plurks = self._load(text.extract(page, "_PLURKS = ", ";\n", pos)[0]) headers = {"Referer": url, "X-Requested-With": "XMLHttpRequest"}