From e395309011238266979e520f3675657eb1c277e4 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sun, 20 Mar 2022 02:31:55 +0100 Subject: [PATCH] Cosmetics, remove unnecessary lines, rewrite help texts a bit --- mvw-dl.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mvw-dl.py b/mvw-dl.py index acfea6a..1e53aff 100644 --- a/mvw-dl.py +++ b/mvw-dl.py @@ -395,6 +395,7 @@ def get_safe_filename( log.debug(f"{shorthand_uuid} Replacing unsafe characters in filename with dashes ...") clean_filename = re.sub(r"""[/\\?%*:|"<>\x7F\x00-\x1F]""", "-", dirty_filename) + log.debug(f"{shorthand_uuid} New filename: '{clean_filename}'") return clean_filename @@ -447,7 +448,6 @@ def get_filename( filename_safe = filename_safe.lower() log.debug(f"{shorthand_uuid} New filename: '{filename_safe}'") - log.debug(f"{shorthand_uuid} {filename_safe}") return filename_safe @@ -620,9 +620,6 @@ def copy_url( else: log_successful_download(section_name, config_obj, show, state_file_abs_path, job_uuid, shorthand_uuid) log.info(f"{shorthand_uuid} Done moving") - except Exception: - console.print_exception(show_locals=True) - log.error(f"{shorthand_uuid} Failed moving file") def get_max_quality_url( @@ -747,8 +744,6 @@ if __name__ == '__main__': if config.has_option(section, "title_not_regex"): json_response = dedup_json_titles(section, config, json_response) - log.debug(f"Downloading {json_response.result.queryInfo.resultCount} " + log.debug(f"Interested in {json_response.result.queryInfo.resultCount} " f"""{p.plural("show", json_response.result.queryInfo.resultCount)} ...""") download_media(section, config, json_response) - - # console.print_json(json_response.json())