diff --git a/src/aniworld/__main__.py b/src/aniworld/__main__.py index d7b9c86..7827a1e 100644 --- a/src/aniworld/__main__.py +++ b/src/aniworld/__main__.py @@ -300,9 +300,12 @@ def on_ok(self): selected_urls = [self.episode_map[episode] for episode in selected_episodes] selected_str = "\n".join(selected_episodes) + logging.debug("Selected URLs: %s", selected_urls) - npyscreen.notify_confirm(f"Selected episodes:\n{ - selected_str}", title="Selection") + npyscreen.notify_confirm( + f"Selected episodes:\n{selected_str}", + title="Selection" + ) if not self.directory_field.hidden: anime_title = format_anime_title(self.parentApp.anime_slug) diff --git a/src/aniworld/common/common.py b/src/aniworld/common/common.py index 52b21b1..852c270 100644 --- a/src/aniworld/common/common.py +++ b/src/aniworld/common/common.py @@ -61,8 +61,8 @@ def check_dependencies(dependencies: list) -> None: download_dependencies(missing) else: missing_with_links = [ - f"{dep} (Download: {download_links.get( - dep, 'No link available')})" + f"{dep} (Download: " + f"{download_links.get(dep, 'No link available')})" for dep in missing ] logging.critical( diff --git a/src/aniworld/execute.py b/src/aniworld/execute.py index 1add8e1..ce97361 100644 --- a/src/aniworld/execute.py +++ b/src/aniworld/execute.py @@ -50,8 +50,9 @@ def providers(soup: BeautifulSoup) -> Dict[str, Dict[int, str]]: provider_name = provider.find('h4').text.strip() if provider_name not in extracted_data: extracted_data[provider_name] = {} - extracted_data[provider_name][lang_key] = f"https://aniworld.to{ - redirect_link}" + extracted_data[provider_name][lang_key] = ( + f"https://aniworld.to{redirect_link}" + ) logging.debug("Extracted provider data: %s", extracted_data) return extracted_data except AttributeError: diff --git a/src/aniworld/extractors/nhentai/nhentai.py b/src/aniworld/extractors/nhentai/nhentai.py index 70ecbb5..5bf4cd3 100644 --- a/src/aniworld/extractors/nhentai/nhentai.py +++ b/src/aniworld/extractors/nhentai/nhentai.py @@ -100,8 +100,9 @@ def nhentai(link: str = None): if not link: print(COLORS['clear'], end='') source = get_input( - f"{COLORS['pink'] - }Please provide the image id for any doujin image (E.g. 234781)." + f"{COLORS['pink']}" + f"Please provide the image id for any doujin image " + f"(E.g. 234781)." ) folder = get_input( f"{COLORS['pink']}What should the output folder be called?" diff --git a/tests/test_aniworld.py b/tests/test_aniworld.py index fc7942a..c49b5dc 100644 --- a/tests/test_aniworld.py +++ b/tests/test_aniworld.py @@ -62,8 +62,10 @@ def test_main(args): ) return result.stdout except subprocess.CalledProcessError as e: - print(f"Command '{ - e.cmd}' returned non-zero exit status {e.returncode}.") + print( + f"Command '{e.cmd}' " + f"returned non-zero exit status {e.returncode}." + ) print(f"Error output: {e.stderr}") raise