From 1441a3ea10162a6e98b339c782528a581256a6c7 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 29 Nov 2024 17:47:49 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20Added=20Python=203.12=20to=20cl?= =?UTF-8?q?assifiers.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 23ae7ca..e529cce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] [tool.poetry.scripts] From e80a3dcb1256e3c5d45853cca06f02917ff3fdfe Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 29 Nov 2024 18:03:33 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20Reverted=20`tidalapi`=20workaro?= =?UTF-8?q?und=20(file=20extension=20bug=20fix).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/download.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index c755411..3b74474 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -341,15 +341,7 @@ class Download: return False, "" if isinstance(media, Track): - # TODO: HOTFIX! Go back to - # file_extension = media_stream.get_stream_manifest().file_extension - # After tidalapi has fixed #304 - if stream_manifest.file_extension is VideoExtensions.TS: - file_extension = stream_manifest.file_extension - elif stream_manifest.dash_info and AudioExtensions.FLAC in stream_manifest.dash_info.first_url: - file_extension = AudioExtensions.FLAC - else: - file_extension = AudioExtensions.M4A + file_extension = media_stream.get_stream_manifest().file_extension if self.settings.data.extract_flac and ( stream_manifest.codecs.upper() == Codec.FLAC and file_extension != AudioExtensions.FLAC