summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2021-12-03 16:52:53 +0100
committerDudemanguy <random342@airmail.cc>2022-04-21 16:42:27 +0000
commit9d2a6dc302a3c2ed7320b66793f4ac03c2b5ce80 (patch)
tree3fcfdf4b75ff33ed4c6fac1748bdaa59a7ba5450 /player
parentc317abbb635fa9e59857f8fc13107ffd66e956c8 (diff)
downloadmpv-9d2a6dc302a3c2ed7320b66793f4ac03c2b5ce80.tar.bz2
mpv-9d2a6dc302a3c2ed7320b66793f4ac03c2b5ce80.tar.xz
player: add cover-art-whitelist option
This allows more fine grained control over which cover art to load. With --cover-art-auto=exact and --cover-art-whitelist=yes, you can now load cover art with the exact media filename and the whitelisted filenames, but not cover art that contains the media filename (--cover-art-auto=fuzzy).
Diffstat (limited to 'player')
-rw-r--r--player/external_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/external_files.c b/player/external_files.c
index 3aca20dfdb..16aeb665c7 100644
--- a/player/external_files.c
+++ b/player/external_files.c
@@ -246,7 +246,7 @@ static void append_dir_subtitles(struct mpv_global *global, struct MPOpts *opts,
if (bstr_find(tmp_fname_trim, f_fname_trim) >= 0 && fuzz >= 1)
prio |= 2; // contains the movie name
- if (type == STREAM_VIDEO && fuzz >= 1 && prio == 0)
+ if (type == STREAM_VIDEO && opts->coverart_whitelist && prio == 0)
prio = test_cover_filename(dename);
// doesn't contain the movie name