From 648ce77c95d6fdd491e4e388908a406a39d1fbbb Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Tue, 5 Dec 2023 11:30:32 -0700 Subject: [PATCH] fix audio sorting --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/utils/sorting.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 30b9b745f..7b77c8bd9 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.0.36" +__version__ = "5.0.37" diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py index 804c0c059..cc7052776 100644 --- a/cyberdrop_dl/utils/sorting.py +++ b/cyberdrop_dl/utils/sorting.py @@ -88,7 +88,7 @@ async def sort_audio(self, file: Path, base_name: str) -> None: """Sorts an audio file into the sorted audio folder""" self.audio_count += 1 - file_info = mutagen.FileType(file).info + file_info = mutagen.File(file).info length = file_info.length bitrate = file_info.bitrate sample_rate = file_info.sample_rate diff --git a/pyproject.toml b/pyproject.toml index 897566054..62047f39a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.0.36" +version = "5.0.37" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"