Skip to content

Commit

Permalink
[plurk] fix extraction (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 28, 2022
1 parent 63e0924 commit 194803f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/plurk.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"}
Expand Down

0 comments on commit 194803f

Please sign in to comment.