check if both list and link are provided

This commit is contained in:
Danilo Reyes
2026-02-28 19:42:27 -06:00
parent 5ad8fc0dc8
commit 83210d4356

View File

@@ -61,9 +61,12 @@ class Gallery:
for key, env_var in auth_env.items(): for key, env_var in auth_env.items():
command += ["-o", f"{key}={os.environ.get(env_var, '')}"] command += ["-o", f"{key}={os.environ.get(env_var, '')}"]
if self.link and not self.list: if self.link and self.list:
LOG.warning("Both link and list set; using link and ignoring list.")
command.append(self.link) command.append(self.link)
if self.list and not self.link: elif self.link:
command.append(self.link)
elif self.list:
command += ["-i", queue] command += ["-i", queue]
LOG.debug(command) LOG.debug(command)