mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-10 13:18:14 -05:00
Merge pull request #895 from whatdoineed2do/library-metarescan-fix
Library metarescan fix
This commit is contained in:
commit
c5340e350f
@ -747,7 +747,16 @@ library_init(void)
|
|||||||
for (i = 0; sources[i]; i++)
|
for (i = 0; sources[i]; i++)
|
||||||
{
|
{
|
||||||
if (!sources[i]->init)
|
if (!sources[i]->init)
|
||||||
continue;
|
{
|
||||||
|
DPRINTF(E_LOG, L_LIB, "BUG: library source '%s' has no init()\n", sources[i]->name);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!sources[i]->metarescan)
|
||||||
|
{
|
||||||
|
DPRINTF(E_LOG, L_LIB, "BUG: library source '%s' has no metarescan()\n", sources[i]->name);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
ret = sources[i]->init();
|
ret = sources[i]->init();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
@ -1965,6 +1965,7 @@ struct library_source spotifyscanner =
|
|||||||
.init = spotifywebapi_init,
|
.init = spotifywebapi_init,
|
||||||
.deinit = spotifywebapi_deinit,
|
.deinit = spotifywebapi_deinit,
|
||||||
.rescan = rescan,
|
.rescan = rescan,
|
||||||
|
.metarescan = rescan,
|
||||||
.initscan = initscan,
|
.initscan = initscan,
|
||||||
.fullrescan = fullrescan,
|
.fullrescan = fullrescan,
|
||||||
.queue_add = queue_add,
|
.queue_add = queue_add,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user