fix png files not loading
This commit is contained in:
parent
0367de6507
commit
463ccf53ef
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ public class AudioFileCoverFetcher implements DataFetcher<InputStream> {
|
|||
}
|
||||
}
|
||||
|
||||
private static final String[] FALLBACKS = {"cover.jpg", "album.jpg", "folder.jpg"};
|
||||
private static final String[] FALLBACKS
|
||||
= {"cover.jpg", "album.jpg", "folder.jpg", "cover.png", "album.png", "folder.png"};
|
||||
|
||||
private InputStream fallback(String path) throws FileNotFoundException {
|
||||
File parent = new File(path).getParentFile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue