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)