aboutsummaryrefslogtreecommitdiff
path: root/plugins/mangadex.py
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-04-21 01:14:28 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:12:34 +0200
commit16f257a85a40a8da50cef1fa6ffce4e2da6da8b8 (patch)
treecfb0d9c739d1e282621f5e5585a004ea624f551e /plugins/mangadex.py
parent6f1afa9d76e9c2611a8025fb067d7ee14518dc18 (diff)
Fix incorrect response.ok call
Diffstat (limited to 'plugins/mangadex.py')
-rwxr-xr-xplugins/mangadex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mangadex.py b/plugins/mangadex.py
index 3c70b59..be0e2ce 100755
--- a/plugins/mangadex.py
+++ b/plugins/mangadex.py
@@ -33,7 +33,7 @@ if len(sys.argv) < 2:
def download_file(url, save_path):
with requests.get(url, stream=True) as response:
- if not response.ok():
+ if not response.ok:
return False
with open(save_path, "wb") as file:
for chunk in response.iter_content(chunk_size=8192):