fix fastani (#528)

master
AbdullahM0hamed 2020-09-30 20:21:10 +01:00 committed by GitHub
parent 7abee6b3a4
commit cba0ab918a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ class FastAni(Anime, sitename="fastani"):
js = helpers.get(js_location).text
# Get authorization token, e.g: {authorization:"Bearer h8X2exbErErNSxRnr6sSXAE2ycUSyrbU"}
token = re.search("authorization:.*?\"(.*?)\"", js).group(1)
key, token = re.search("method:\"GET\".*?\"(.*?)\".*?\"(.*?)\"", js).group(1,2)
return {"authorization": token}
return {key: token}
@classmethod
def search(cls, query):