mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-02-04 11:07:48 -08:00
fix(hianim) always use fresh requests in extractors
This commit is contained in:
@@ -248,8 +248,6 @@ class HiAnimeApi(AnimeProvider):
|
||||
link_to_streams_response.json()
|
||||
)
|
||||
|
||||
# TODO: Hianime decided to fucking encrypt shit
|
||||
# so got to fix it later
|
||||
return {
|
||||
"headers": {},
|
||||
"subtitles": [
|
||||
|
||||
@@ -73,7 +73,8 @@ class MegaCloud:
|
||||
|
||||
# Fetch decryption script
|
||||
script_response = self.session.get(
|
||||
megacloud["script"] + str(int(time.time() * 1000))
|
||||
megacloud["script"] + str(int(time.time() * 1000)),
|
||||
fresh=1, # pyright: ignore
|
||||
)
|
||||
script_text = script_response.text
|
||||
if not script_text:
|
||||
|
||||
Reference in New Issue
Block a user