Skip to content

Commit

Permalink
[gofile] fix website token extraction (#6596)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Dec 3, 2024
1 parent f967247 commit d9bbe3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/gofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def _create_account(self):
@cache(maxage=86400)
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, 'wt: "', '"')
page = self.request(self.root + "/dist/js/global.js").text
return text.extr(page, '.wt = "', '"')

def _get_content(self, content_id, password=None):
headers = {"Authorization": "Bearer " + self.api_token}
Expand Down

0 comments on commit d9bbe3b

Please sign in to comment.