From 80d9b74a03d396379a58ebe00b3551b95675af22 Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 12 Feb 2024 12:51:12 -0700 Subject: [PATCH] Fixing english stackoverflow download url. --- modules/zim/lib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/zim/lib.py b/modules/zim/lib.py index 380d7433..c495489c 100644 --- a/modules/zim/lib.py +++ b/modules/zim/lib.py @@ -314,7 +314,10 @@ async def subscribe(name: str, language: str, session: Session = None, elif name == 'Vikidia': url = f'https://download.kiwix.org/zim/vikidia/vikidia_{language}_all_maxi_' elif name == 'Stackoverflow (Stack Exchange)': - url = f'https://download.kiwix.org/zim/stack_exchange/{language}.stackoverflow.com_{language}_all_' + if language == 'en': + url = f'https://download.kiwix.org/zim/stack_exchange/stackoverflow.com_{language}_all_' + else: + url = f'https://download.kiwix.org/zim/stack_exchange/{language}.stackoverflow.com_{language}_all_' elif name == 'Superuser (Stack Exchange)': url = f'https://download.kiwix.org/zim/stack_exchange/superuser.com_{language}_all_' elif name == 'iFixit':