summaryrefslogtreecommitdiff
path: root/tidal_dl_ng
diff options
context:
space:
mode:
authorexislow <exislow@users.noreply.github.com>2024-11-29 18:04:15 +0100
committerGitHub <noreply@github.com>2024-11-29 18:04:15 +0100
commitad63d686f2a2769e144d6c67b5e8d33c2f6b6b6f (patch)
tree783408419472ef743ed3d5bf93e3de026431cee6 /tidal_dl_ng
parent6da679b262dc99cd8798e18845385947491fb86e (diff)
parente80a3dcb1256e3c5d45853cca06f02917ff3fdfe (diff)
downloadtidal-dl-ng-ad63d686f2a2769e144d6c67b5e8d33c2f6b6b6f.tar.gz
Merge pull request #258 from exislow/file-extension-fix
File extension fix
Diffstat (limited to 'tidal_dl_ng')
-rw-r--r--tidal_dl_ng/download.py10
1 files changed, 1 insertions, 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