mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
external_files: recognize jxl and avif files as cover art
This commit is contained in:
parent
c5d1230517
commit
0426f4b107
@ -43,7 +43,7 @@ static const char *const audio_exts[] = {"mp3", "aac", "mka", "dts", "flac",
|
||||
NULL};
|
||||
|
||||
static const char *const image_exts[] = {"jpg", "jpeg", "png", "gif", "bmp",
|
||||
"webp", "jxl", "tiff", "tif",
|
||||
"webp", "jxl", "tiff", "tif", "avif",
|
||||
NULL};
|
||||
|
||||
// Stolen from: vlc/-/blob/master/modules/meta_engine/folder.c#L40
|
||||
@ -51,24 +51,40 @@ static const char *const image_exts[] = {"jpg", "jpeg", "png", "gif", "bmp",
|
||||
static const char *const cover_files[] = {
|
||||
"AlbumArt.jpg",
|
||||
"AlbumArt.webp",
|
||||
"AlbumArt.jxl",
|
||||
"AlbumArt.avif",
|
||||
"Album.jpg",
|
||||
"Album.webp",
|
||||
"Album.jxl",
|
||||
"Album.avif",
|
||||
"cover.jpg",
|
||||
"cover.png",
|
||||
"cover.webp",
|
||||
"cover.jxl",
|
||||
"cover.avif",
|
||||
"front.jpg",
|
||||
"front.png",
|
||||
"front.webp",
|
||||
"front.jxl",
|
||||
"front.avif",
|
||||
|
||||
"AlbumArtSmall.jpg",
|
||||
"AlbumArtSmall.webp",
|
||||
"AlbumArtSmall.jxl",
|
||||
"AlbumArtSmall.avif",
|
||||
"Folder.jpg",
|
||||
"Folder.png",
|
||||
"Folder.webp",
|
||||
"Folder.jxl",
|
||||
"Folder.avif",
|
||||
".folder.png",
|
||||
".folder.webp",
|
||||
".folder.jxl",
|
||||
".folder.avif",
|
||||
"thumb.jpg",
|
||||
"thumb.webp",
|
||||
"thumb.jxl",
|
||||
"thumb.avif",
|
||||
|
||||
"front.bmp",
|
||||
"front.gif",
|
||||
|
Loading…
Reference in New Issue
Block a user