mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 01:33:44 -04:00
[filescanner] Make for filetypes_ignore work for known file types as well
This commit is contained in:
parent
bc1fb4b385
commit
a549f81861
@ -274,6 +274,9 @@ file_type_get(const char *path) {
|
|||||||
if (!ext || (strlen(ext) == 1))
|
if (!ext || (strlen(ext) == 1))
|
||||||
return FILE_REGULAR;
|
return FILE_REGULAR;
|
||||||
|
|
||||||
|
if (file_type_ignore(ext))
|
||||||
|
return FILE_IGNORE;
|
||||||
|
|
||||||
if ((strcasecmp(ext, ".m3u") == 0) || (strcasecmp(ext, ".pls") == 0))
|
if ((strcasecmp(ext, ".m3u") == 0) || (strcasecmp(ext, ".pls") == 0))
|
||||||
return FILE_PLAYLIST;
|
return FILE_PLAYLIST;
|
||||||
|
|
||||||
@ -312,9 +315,6 @@ file_type_get(const char *path) {
|
|||||||
return FILE_IGNORE;
|
return FILE_IGNORE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_type_ignore(ext))
|
|
||||||
return FILE_IGNORE;
|
|
||||||
|
|
||||||
if ((filename[0] == '_') || (filename[0] == '.'))
|
if ((filename[0] == '_') || (filename[0] == '.'))
|
||||||
return FILE_IGNORE;
|
return FILE_IGNORE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user