Support no auth downloads as well

This commit is contained in:
Balazs Perlaki-Horvath 2024-01-15 23:07:11 +01:00 committed by Kelson
parent 1ad9afc1a5
commit 41b22aa73a

View File

@ -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]