diff options
Diffstat (limited to 'plugins/mangaplus.py')
-rwxr-xr-x | plugins/mangaplus.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mangaplus.py b/plugins/mangaplus.py index 3797d14..23bae04 100755 --- a/plugins/mangaplus.py +++ b/plugins/mangaplus.py @@ -182,7 +182,7 @@ def download_file(url, page, save_path): index = 0 with requests.get(url, headers=headers, 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): @@ -192,7 +192,7 @@ def download_file(url, page, save_path): index += len(chunk) else: with requests.get(url, headers=headers, 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): |