aboutsummaryrefslogtreecommitdiff
path: root/plugins/manganelo.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/manganelo.py')
-rwxr-xr-xplugins/manganelo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/manganelo.py b/plugins/manganelo.py
index 3b86397..312d093 100755
--- a/plugins/manganelo.py
+++ b/plugins/manganelo.py
@@ -44,7 +44,7 @@ def download_file(url, save_path):
#cookies = {
# "content_server": "server2"
#}
- with requests.get(url, stream=True, headers=headers) as response:
+ with requests.get(url, stream=True, headers=headers, timeout=30) as response:
if not response.ok:
return 0
with open(save_path, "wb") as file:
@@ -55,7 +55,7 @@ def download_file(url, save_path):
return file_size
def list_chapters(url, chapter_list_input):
- response = requests.get(url)
+ response = requests.get(url, timeout=30)
response.raise_for_status()
seen_titles = set()
@@ -81,7 +81,7 @@ def list_chapters(url, chapter_list_input):
print(json.dumps(chapters))
def download_chapter(url, download_dir):
- response = requests.get(url)
+ response = requests.get(url, timeout=30)
response.raise_for_status()
in_progress_filepath = os.path.join(download_dir, ".in_progress")