From 63ca9044eadd2c1d8fb4732e680f397f94a98350 Mon Sep 17 00:00:00 2001 From: Marco S <70583350+MarcoSa-2000@users.noreply.github.com> Date: Wed, 7 Jun 2023 00:55:07 +0200 Subject: [PATCH] 0.6.3 --- README.md | 2 +- animegifs/distutils/errors.py | 2 +- animegifs/distutils/gifs.py | 4 ++-- setup.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6dee7b4..d67d201 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ malid = gifs.get_malId(gif) #get the ID of the gif's anime myanimelist page. * Random * Steal-magic -#Troubleshooting and other +# Troubleshooting and other If you encounter an error raise an issue on the issue page: https://github.com/MarcoSa-2000/animegifs/issues or join the discord server to request new categories, new functions, feedback and even errors. diff --git a/animegifs/distutils/errors.py b/animegifs/distutils/errors.py index f3288d5..cd6512e 100644 --- a/animegifs/distutils/errors.py +++ b/animegifs/distutils/errors.py @@ -56,7 +56,7 @@ def __init__(self, exc, error="Authentication request timed out."): class AuthError(Exception): """ Authentication request returned an error. Probably status error 4xx. - It will be resolved soon, if it persist, + It will be resolved soon, if it persists, issue an issue on https://github.com/MarcoSa-2000/animegifs/issues. """ diff --git a/animegifs/distutils/gifs.py b/animegifs/distutils/gifs.py index dba6c00..633803e 100644 --- a/animegifs/distutils/gifs.py +++ b/animegifs/distutils/gifs.py @@ -26,10 +26,10 @@ def authentication(): try: - response = requests.post("https://enkidu-app-5a3qq2fqya-uc.a.run.app/key1", timeout=10) + response = requests.post("https://enkidu-app-5a3qq2fqya-uc.a.run.app/key1", timeout=100) except requests.exceptions.Timeout: try: - response = requests.post("https://enkidu-app-5a3qq2fqya-uc.a.run.app/key1", timeout=25) + response = requests.post("https://enkidu-app-5a3qq2fqya-uc.a.run.app/key2", timeout=25) except requests.exceptions.Timeout as exc: raise errors.AuthTimeout(exc) if response.status_code == 200: diff --git a/setup.py b/setup.py index c65a83e..9e0c4f3 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ long_description = "\n" + fh.read() LONG_DESCRIPTION = long_description -VERSION = '0.6.2' +VERSION = '0.6.3' setup( name='animegifs', @@ -23,7 +23,7 @@ license='MIT', url="https://github.com/MarcoSa-2000/animegifs", install_requires=[ - 'requests==2.28.2,<=2.29.0', + 'requests>=2.28.2,<=2.29.0', 'mal-api==0.5.3', 'PyJWT>=2.4.0,<=2.7.0' ],