Skip to content

Commit

Permalink
1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MainKronos committed Jan 5, 2025
1 parent 1e870b7 commit 43830bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion animeworld/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def fixCookie(self):
"""Aggiunge il csrf_token all'headers."""

csrf_token = re.compile(br'<meta.*?id="csrf-token"\s*?content="(.*?)">')
cookie = re.compile(br'document\.cookie\s*?=\s*?"(.+?)=(.+?)"\s*?;')
cookie = re.compile(br'document\.cookie\s*?=\s*?"(.+?)=(.+?)(\s*?;\s*?path=.+?)?"\s*?;')
for _ in range(2): # numero di tentativi
res = self.get("https://www.animeworld.so", follow_redirects=True)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="animeworld",
version="1.6.4",
version="1.6.5",
author="MainKronos",
description="AnimeWorld UNOFFICIAL API",
long_description=long_description,
Expand Down

0 comments on commit 43830bb

Please sign in to comment.