Skip to content

Commit 32841f2

Browse files
random2907random2907
andauthored
fix decoder (AnimeKai) (#235)
* fix decoder again * version upgrade --------- Co-authored-by: random2907 <yarnjeetyadav1234567890@gmail.com>
1 parent 9144888 commit 32841f2

File tree

5 files changed

+28
-30
lines changed

5 files changed

+28
-30
lines changed

api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "anipy-api"
3-
version = "3.4.0"
3+
version = "3.4.1"
44
description = "api for anipy-cli"
55
authors = ["sdaqo <sdaqo.dev@protonmail.com>"]
66
license = "GPL-3.0"

api/src/anipy_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__appname__ = "anipy-api"
2-
__version__ = "3.4.0"
2+
__version__ = "3.4.1"

api/src/anipy_api/provider/providers/animekai_provider.py

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -83,39 +83,37 @@ def generate_token(n):
8383
)
8484

8585
def decode(n):
86-
n = transform(
87-
'A6mkJw3XMsruY',
88-
base64_url_decode(
89-
substitute(
86+
n = substitute(
87+
transform(
88+
"Pga3kHbfN1",
89+
base64_url_decode(
9090
reverse_it(
91-
reverse_it(
91+
substitute(
9292
transform(
93-
'Sv7tijKFrwDxsl9',
93+
"twUI4s9kDrT3qb",
9494
base64_url_decode(
95-
substitute(
96-
transform(
97-
'j8971KLwSyI',
98-
base64_url_decode(
99-
reverse_it(
100-
substitute(
101-
base64_url_decode(n),
102-
'kxV4iJtRZg3',
103-
'VJx34RtgkZi',
104-
)
105-
)
95+
reverse_it(
96+
substitute(
97+
transform(
98+
"TyrGFfhi40zq",
99+
base64_url_decode(
100+
reverse_it(base64_url_decode(n))
101+
),
106102
),
107-
),
108-
'BjZ9dF6AxHTqn',
109-
'jxqZdB6n9FTHA',
103+
"4zSetv9CNImRdiq",
104+
"i94NvzeIRCqdtSm",
105+
)
110106
)
111107
),
112-
)
108+
),
109+
"vfIiqFKutaW",
110+
"tqaiKIfuvWF",
113111
)
114-
),
115-
'FpPBdhzCyGYoDvO',
116-
'YGFpvoBdCyDPhzO',
117-
)
112+
)
113+
),
118114
),
115+
"vnb0rLzdZN6a",
116+
"vNZnrzd60baL",
119117
)
120118
return urllib.parse.unquote(n)
121119

cli/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "anipy-cli"
3-
version = "3.4.0"
3+
version = "3.4.1"
44
description = "Watch and Download anime from the comfort of your Terminal"
55
authors = ["sdaqo <sdaqo.dev@protonmail.com>"]
66
license = "GPL-3.0"
@@ -20,7 +20,7 @@ yaspin = "^3.0.2"
2020
inquirerpy = "^0.3.4"
2121
appdirs = "^1.4.4"
2222
pypresence = "^4.3.0"
23-
anipy-api = "^3.4.0"
23+
anipy-api = "^3.4.1"
2424

2525
[tool.poetry.scripts]
2626
anipy-cli = "anipy_cli.cli:run_cli"

cli/src/anipy_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__appname__ = "anipy-cli"
2-
__version__ = "3.4.0"
2+
__version__ = "3.4.1"

0 commit comments

Comments
 (0)