From 41b22aa73a74a3efa5c3d6f03cf9409b50d1b06e Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Mon, 15 Jan 2024 23:07:11 +0100 Subject: [PATCH] Support no auth downloads as well --- src/custom_apps.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/custom_apps.py b/src/custom_apps.py index 471917c..78725e1 100644 --- a/src/custom_apps.py +++ b/src/custom_apps.py @@ -64,4 +64,7 @@ class CustomApps: url = parser.zimurl() file_path = parser.zim_file_path() auth = parser.download_auth() - yield ["curl", "-L", url, "-u", auth, "-o", file_path] + if auth != None: + yield ["curl", "-L", url, "-u", auth, "-o", file_path] + else: + yield ["curl", "-L", url, "-o", file_path]