From 83210d435609df2d08b86314f12065f153484d1d Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 28 Feb 2026 19:42:27 -0600 Subject: [PATCH] check if both list and link are provided --- src/download/classes/gallery.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/download/classes/gallery.py b/src/download/classes/gallery.py index e3c124c..94fa2cf 100644 --- a/src/download/classes/gallery.py +++ b/src/download/classes/gallery.py @@ -61,9 +61,12 @@ class Gallery: for key, env_var in auth_env.items(): 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) - if self.list and not self.link: + elif self.link: + command.append(self.link) + elif self.list: command += ["-i", queue] LOG.debug(command)