From 817ae2d50ec48e806c5196d4bd57e18beec2b4b2 Mon Sep 17 00:00:00 2001 From: NobeKanai Date: Mon, 15 Apr 2024 19:35:56 +0800 Subject: [PATCH] fix: handle files containing uppercase suffixes bump to version v0.6.4 --- dvtag/utils.py | 4 ++-- setup.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dvtag/utils.py b/dvtag/utils.py index db4eff5..bcafcad 100644 --- a/dvtag/utils.py +++ b/dvtag/utils.py @@ -92,9 +92,9 @@ def get_audio_paths_list(basepath: Path) -> Tuple[List[List[Path]], List[List[Pa mp3_paths = [] flac_paths = [] for file in files: - if file.name.endswith(".flac"): + if file.suffix.lower() == ".flac": flac_paths.append(file) - elif file.name.endswith(".mp3"): + elif file.suffix.lower() == ".mp3": mp3_paths.append(file) if len(flac_paths): diff --git a/setup.cfg b/setup.cfg index aab8410..2f543b8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = dvtag -version = 0.6.3 +version = 0.6.4 author = Nobe Kanai author_email = nobekanai@gmail.com description = A tool for tagging your doujin voice library.