[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))
|
||||
return FILE_REGULAR;
|
||||
|
||||
if (file_type_ignore(ext))
|
||||
return FILE_IGNORE;
|
||||
|
||||
if ((strcasecmp(ext, ".m3u") == 0) || (strcasecmp(ext, ".pls") == 0))
|
||||
return FILE_PLAYLIST;
|
||||
|
||||
|
@ -312,9 +315,6 @@ file_type_get(const char *path) {
|
|||
return FILE_IGNORE;
|
||||
}
|
||||
|
||||
if (file_type_ignore(ext))
|
||||
return FILE_IGNORE;
|
||||
|
||||
if ((filename[0] == '_') || (filename[0] == '.'))
|
||||
return FILE_IGNORE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue