Commit d9f71ce1 authored by Romain Casati's avatar Romain Casati
Browse files

WWW: Support for multiple aux and modules file in gallery.

parent d5eebe04
......@@ -80,9 +80,15 @@ def galerie(*args):
extensions = f"extensions={','.join(extensions)}&" if extensions else ""
url = f"https://{domain}.basthon.fr/?{language}{extensions}from={urllib.parse.quote(url)}"
if aux is not None:
url += f"&aux={urllib.parse.quote(aux)}"
if isinstance(aux, str):
aux = [aux]
for a in aux:
url += f"&aux={urllib.parse.quote(a)}"
if module is not None:
url += f"&module={urllib.parse.quote(module)}"
if isinstance(module, str):
module = [module]
for m in module:
url += f"&module={urllib.parse.quote(m)}"
return url
def one_section(language, html):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment