1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 04:32:51 +01:00

[gofile] update 'website_token' extraction

This commit is contained in:
Mike Fährmann 2024-01-27 01:10:14 +01:00
parent 1f7101d606
commit 3433481dd2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -73,7 +73,7 @@ class GofileFolderExtractor(Extractor):
def _get_website_token(self):
self.log.debug("Fetching website token")
page = self.request(self.root + "/dist/js/alljs.js").text
return text.extr(page, 'fetchData.websiteToken = "', '"')
return text.extr(page, 'fetchData.wt = "', '"')
def _get_content(self, content_id, password=None):
if password is not None:
@ -81,7 +81,7 @@ class GofileFolderExtractor(Extractor):
return self._api_request("getContent", {
"contentId" : content_id,
"token" : self.api_token,
"websiteToken": self.website_token,
"wt" : self.website_token,
"password" : password,
})