tidekeeper icon indicating copy to clipboard operation
tidekeeper copied to clipboard

[BUG]: Dowloading Flac but it is M4A

Open bastienspamflood-crypto opened this issue 5 months ago • 10 comments

Which entry point?

Termux install

Tidekeeper version or commit

2026.6.2.0

Platform

Termux on Android 13

Steps to reproduce

Download an album

Full output / traceback

I followed all the steps in https://github.com/OpenNerdz/tidekeeper/issues/12, i have my "Save FLAC as .flac files" on true and ffmpeg installed, but the dowloaded files are always on m4a. 

Thanks a lot

Anything else?

Image Image

bastienspamflood-crypto avatar Jun 23 '26 20:06 bastienspamflood-crypto

BRA-11

linear-code[bot] avatar Jun 23 '26 20:06 linear-code[bot]

Thanks for the report! I checked the current code and ran the focused tests for the FLAC/M4A behavior — they’re passing on latest (17 passed).

The app should save .flac when Save FLAC as .flac files is enabled and ffmpeg can remux the FLAC-in-MP4 stream. If remuxing fails, it intentionally falls back to .m4a.

This is likely either an older installed version, settings not being picked up by the Termux entry point, or ffmpeg failing during remux. Could you try updating to the latest install and run ffmpeg -version in Termux? If it still happens, please share the download log around the track save/remux step.

OpenNerdz avatar Jun 23 '26 20:06 OpenNerdz

Hey, thanks for your answer and your work. I run the latest version for ffmpeg and it still happens, you can find the log here :

Image Image

bastienspamflood-crypto avatar Jun 24 '26 10:06 bastienspamflood-crypto

Thanks for the extra log — I can see this line:

Quality: audio High, video P1080

At High quality, TIDAL usually provides AAC/M4A, not FLAC. The Save FLAC as .flac files option only applies when the downloaded stream is actually FLAC.

Please switch audio quality to HiFi/Lossless or Max/Hi-Res Lossless, then retry the album.

OpenNerdz avatar Jun 24 '26 15:06 OpenNerdz

Thanks for your answer.

I have this message when I switch to Hifi/Lossless or Max/Lossless. I tried like 5 differents album and i always got the same message.

Image

bastienspamflood-crypto avatar Jun 24 '26 16:06 bastienspamflood-crypto

Could you try a different album which supports flac and ensure that it also has the same issue. It could be the album itself not supporting it fully.

OpenNerdz avatar Jun 24 '26 19:06 OpenNerdz

I've tried with several different albums, even some that I have already downloaded in flac with the tidal-dl GUI but I got always the same message "Requested Hifi but Tidal returned High".

FYI, I have the max quality subscription on tidal.

bastienspamflood-crypto avatar Jun 25 '26 09:06 bastienspamflood-crypto

Its very strange, ive tested myself on termux and I dont have any issues with it. Ill look into the code.

OpenNerdz avatar Jun 25 '26 10:06 OpenNerdz

Thanks a lot.

bastienspamflood-crypto avatar Jun 25 '26 10:06 bastienspamflood-crypto

Found the issue and pushed a fix to main 👍

Basically the app wasn't trying the backup download method when the first one returned the wrong quality. Should be sorted now — update to the latest version and give it another go!

OpenNerdz avatar Jun 25 '26 19:06 OpenNerdz