mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
Ignore non-artwork jpg's and png's during filescan
(so ffmpeg doesn't waste time analyzing them)
This commit is contained in:
parent
920171658f
commit
37d990b390
@ -213,6 +213,9 @@ file_type_get(const char *path) {
|
||||
if (artwork_file_is_artwork(filename))
|
||||
return FILE_ARTWORK;
|
||||
|
||||
if ((strcasecmp(ext, ".jpg") == 0) || (strcasecmp(ext, ".png") == 0))
|
||||
return FILE_IGNORE;
|
||||
|
||||
#ifdef ITUNES
|
||||
if (strcasecmp(ext, ".xml") == 0)
|
||||
return FILE_ITUNES;
|
||||
|
Loading…
Reference in New Issue
Block a user