[library] Check for all scanning methods in library_init()

This commit is contained in:
ejurgensen 2020-02-08 10:53:59 +01:00
parent c5340e350f
commit 942628f914

View File

@ -748,13 +748,13 @@ library_init(void)
{ {
if (!sources[i]->init) if (!sources[i]->init)
{ {
DPRINTF(E_LOG, L_LIB, "BUG: library source '%s' has no init()\n", sources[i]->name); DPRINTF(E_FATAL, L_LIB, "BUG: library source '%s' has no init()\n", sources[i]->name);
return -1; return -1;
} }
if (!sources[i]->metarescan) if (!sources[i]->initscan || !sources[i]->rescan || !sources[i]->metarescan || !sources[i]->fullrescan)
{ {
DPRINTF(E_LOG, L_LIB, "BUG: library source '%s' has no metarescan()\n", sources[i]->name); DPRINTF(E_FATAL, L_LIB, "BUG: library source '%s' is missing a scanning method\n", sources[i]->name);
return -1; return -1;
} }