query androids artwork db by album id (just like the AOSP player does in getArtworkQuick())

This commit is contained in:
Adrian Ulrich committed 2016-10-23 13:58:06 +02:00
1 parent ca939650d4
commit 3e4efdb989
1 file changed
+2 -1
@@ -444,7 +444,8 @@ public class CoverCache {
}
if (inputStream == null && (CoverCache.mCoverLoadMode & CoverCache.COVER_MODE_ANDROID) != 0) {
Uri uri = Uri.parse("content://media/external/audio/media/" + song.id + "/albumart");
Uri uri = Uri.parse("content://media/external/audio/albumart/"+song.albumId);
ContentResolver res = mContext.getContentResolver();
sampleInputStream = res.openInputStream(uri);
if (sampleInputStream != null) // cache misses are VERY expensive here, so we check if the first open worked