spotube icon indicating copy to clipboard operation
spotube copied to clipboard

The downloaded lossless file does not meet the specifications.

Open thumb2086 opened this issue 1 month ago • 5 comments

Is there an existing issue for this? (Please read the description)

  • [x] I have searched the existing issues

Current Behavior

The downloaded file is incorrect; the lossless format is incompatible. I discovered this while playing it with echo.

Expected Behavior

Compliant with all types of standard FLAC files

Steps to reproduce

Download lossless music FLAC files

Logs

Version: v3.0.722_603d72b(722) nightly Extension ID: unified Track: {"id":"1000008431","title":"无可奈何","cover":{"type":"dev.brahmkshatriya.echo.common.models.ImageHolder.ResourceUriImageHolder","uri":"content://media/external/audio/media/1000008431/albumart","crop":false},"artists":[{"id":"808372","name":"承桓","extras":{"extension_id":"echo-offline"},"isFollowable":false,"isShareable":false}],"album":{"id":"2982618058298516782","title":"无可奈何","artists":[{"id":"808372","name":"承桓","extras":{"extension_id":"echo-offline"},"isFollowable":false,"isShareable":false}],"extras":{"extension_id":"echo-offline"},"isShareable":false},"duration":209933,"releaseDate":{"epochTimeMs":1735744307354},"extras":{"genre":"未知","addDate":"1763304704","trackNumber":"null","extension_id":"echo-offline","cached":"false"},"streamables":[{"id":"/storage/emulated/0/Download/Spotube/无可奈何 - 承桓.flac","quality":0,"type":"Server","title":"/storage/emulated/0/Download/Spotube/无可奈何 - 承桓.flac","extras":{"extension_id":"echo-offline"}}],"isHideable":false,"isShareable":false} Stream: {"id":"/storage/emulated/0/Download/Spotube/无可奈何 - 承桓.flac","quality":0,"type":"Server","title":"/storage/emulated/0/Download/Spotube/无可奈何 - 承桓.flac","extras":{"extension_id":"echo-offline"}}

---Stack Trace--- dev.brahmkshatriya.echo.playback.exceptions.PlayerException at coil3.RealImageLoader$execute$2.invokeSuspend$dev$brahmkshatriya$echo$playback$listener$PlayerEventListener$onPlayerError$1(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:41) at coil3.RealImageLoader$execute$2.invokeSuspend(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:6) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:9) at kotlinx.coroutines.DispatchedTask.run(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:109) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:4) at kotlinx.coroutines.scheduling.TaskImpl.run(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:3) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:1) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:58) Caused by: androidx.media3.common.ParserException: First frame does not start with sync code. {contentIsMalformed=true, dataType=1} at androidx.media3.extractor.flac.FlacExtractor.read(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:595) at androidx.media3.exoplayer.source.ProgressiveMediaPeriod$ExtractingLoadable.load(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:227) at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(r8-map-id-716bfd9cf2b90256518cea494ecc4c5a3c52363cb502f9b81bcef91994c0ff92:35) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651) at java.lang.Thread.run(Thread.java:1119)

Operating System

Android 13

Spotube version

V.5.1.0

Installation source

GitHub Releases (Binary)

Additional information

No response

Self grab

  • [ ] I'm ready to work on this issue!

thumb2086 avatar Nov 16 '25 15:11 thumb2086

The file downloaded from Spotube is faulty; the audio source is DAB music. Downloading directly from the platform yields a normal file.

Downloading DAB music from Spotube results in an error.

thumb2086 avatar Nov 17 '25 03:11 thumb2086

Can you directly share the audio file?

KRTirtho avatar Nov 17 '25 04:11 KRTirtho

Yes, but GitHub does not support uploading FLAC files.

thumb2086 avatar Nov 17 '25 04:11 thumb2086

@KRTirtho 无可奈何 - 承桓.zip The file is here; I've compressed it and uploaded it.

thumb2086 avatar Nov 24 '25 15:11 thumb2086

I hope this problem can be resolved as soon as possible because I want to create an offline lossless music library.

thumb2086 avatar Nov 25 '25 02:11 thumb2086