diff --git a/src/download/classes/user.py b/src/download/classes/user.py index 9adc13e..f12643b 100644 --- a/src/download/classes/user.py +++ b/src/download/classes/user.py @@ -62,6 +62,11 @@ class User: for lst in filter(lambda x: not self.lists[x].is_file(), ["master", "push"]): self.lists[lst].touch() + for lst in filter( + lambda x: not self.lists[x].is_file(), + ["instagram", "kemono", "main"], + ): + self.lists[lst].touch() def append_list(self, name: str, line: str) -> None: """Appends a line into the given list""" diff --git a/src/download/download.py b/src/download/download.py index 19ef605..d4c3937 100644 --- a/src/download/download.py +++ b/src/download/download.py @@ -74,6 +74,9 @@ def parse_gallery(gdl_list: str, user: User) -> None: """Processes the gallery-dl command based on the selected gallery""" args = get_args() list_path = user.lists[gdl_list] + if not list_path.is_file(): + LOG.warning("List file missing: %s", list_path) + return with open(list_path, "r", encoding="utf-8") as r_file: links = list(map(lambda x: x.rstrip(), r_file)) for link in filter(None, links):