Git Product home page Git Product logo

Comments (2)

Aga-C avatar Aga-C commented on June 7, 2024

I couldn't reproduce it just by opening the app after unpacking these files. After manual rescanning of media, those files indeed lost their covers. I could also reproduce it by clearing all app data. What's interesting, I don't have this problem with covers saved in FLAC files.

from music-player.

knuxyl avatar knuxyl commented on June 7, 2024

I have a temporary fix working but it's not perfect. I'm at a dead end. I found that if I set coverArt to "" (blank string) it works, but is a little glitchy on loading them, like takes a half second or so, and the track list in the activity sometimes loads the wrong one.

SimpleMediaScanner.kt
app/src/main/kotlin/org/fossify/musicplayer/helpers/SimpleMediaScanner.kt
line 248

//val coverUri = ContentUris.withAppendedId(artworkUri, albumId)

line 249

//val coverArt = coverUri.toString()

line 250

val coverArt = ""

The problem I'm facing now is the difference between how getTracksSync() and getAlbumsSync() differ in their MediaStore. getTracksSync() uses Android.Media while getAlbumsSync() uses Android.Albums for the cursor query. It seems that the album sync is able to set the artwork fine but the tracks sync does not. I have no idea what exactly is going on but this is a temporary fix for me.

If you want to test this build I uploaded it. It's a debug build, couldn't figure out how to build a release apk.
https://drive.google.com/file/d/1p5_Y5k47GdsNqWovdH3x0Z_0d29OkWf5/view?usp=sharing

from music-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.