mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-23 11:32:34 -05:00
Fix horrible filescanner bug I introduced with the Spotify commit
This commit is contained in:
parent
6e8653885b
commit
81b285a79e
@ -472,7 +472,10 @@ filescanner_process_media(char *path, time_t mtime, off_t size, int type, struct
|
|||||||
ret = mfi->artist && mfi->album && mfi->title;
|
ret = mfi->artist && mfi->album && mfi->title;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ret = -1;
|
{
|
||||||
|
DPRINTF(E_LOG, L_SCAN, "Unknown scan type for %s, this error should not occur\n", path);
|
||||||
|
ret = -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
@ -699,7 +702,7 @@ process_directory(char *path, int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check if compilation and/or podcast directory */
|
/* Check if compilation and/or podcast directory */
|
||||||
type = 0;
|
type = F_SCAN_TYPE_FILE;
|
||||||
if (check_speciallib(path, "compilations"))
|
if (check_speciallib(path, "compilations"))
|
||||||
type |= F_SCAN_TYPE_COMPILATION;
|
type |= F_SCAN_TYPE_COMPILATION;
|
||||||
if (check_speciallib(path, "podcasts"))
|
if (check_speciallib(path, "podcasts"))
|
||||||
@ -1174,7 +1177,7 @@ process_inotify_file(struct watch_info *wi, char *path, struct inotify_event *ie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type = 0;
|
type = F_SCAN_TYPE_FILE;
|
||||||
if (check_speciallib(path, "compilations"))
|
if (check_speciallib(path, "compilations"))
|
||||||
type |= F_SCAN_TYPE_COMPILATION;
|
type |= F_SCAN_TYPE_COMPILATION;
|
||||||
if (check_speciallib(path, "podcasts"))
|
if (check_speciallib(path, "podcasts"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user