[filescanner] Make for filetypes_ignore work for known file types as well

This commit is contained in:
ejurgensen 2016-10-25 09:08:56 +02:00 committed by GitHub
parent bc1fb4b385
commit a549f81861
1 changed files with 3 additions and 3 deletions

View File

@ -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;