diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-11-29 18:03:33 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-11-29 18:03:33 +0100 |
| commit | e80a3dcb1256e3c5d45853cca06f02917ff3fdfe (patch) | |
| tree | 783408419472ef743ed3d5bf93e3de026431cee6 | |
| parent | 1441a3ea10162a6e98b339c782528a581256a6c7 (diff) | |
| download | tidal-dl-ng-e80a3dcb1256e3c5d45853cca06f02917ff3fdfe.tar.gz | |
✨ Reverted `tidalapi` workaround (file extension bug fix).
| -rw-r--r-- | tidal_dl_ng/download.py | 10 |
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 |
