mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 22:46:02 -05:00
[filescanner] Ignore spotify/lastfm/remote during startup, they can give DB deadlocks
- see https://www.raspberrypi.org/forums/viewtopic.php?p=1087137#p1087137
This commit is contained in:
parent
e4387fe33e
commit
82470b5168
@ -849,22 +849,31 @@ process_file(char *file, time_t mtime, off_t size, int type, int flags, int dir_
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case FILE_CTRL_REMOTE:
|
case FILE_CTRL_REMOTE:
|
||||||
remote_pairing_read_pin(file);
|
if (flags & F_SCAN_BULK)
|
||||||
|
DPRINTF(E_LOG, L_SCAN, "Bulk scan will ignore '%s' (to process, add it after startup)\n", file);
|
||||||
|
else
|
||||||
|
remote_pairing_read_pin(file);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FILE_CTRL_LASTFM:
|
case FILE_CTRL_LASTFM:
|
||||||
#ifdef LASTFM
|
#ifdef LASTFM
|
||||||
lastfm_login(file);
|
if (flags & F_SCAN_BULK)
|
||||||
|
DPRINTF(E_LOG, L_SCAN, "Bulk scan will ignore '%s' (to process, add it after startup)\n", file);
|
||||||
|
else
|
||||||
|
lastfm_login(file);
|
||||||
#else
|
#else
|
||||||
DPRINTF(E_LOG, L_SCAN, "Detected LastFM file, but this version was built without LastFM support\n");
|
DPRINTF(E_LOG, L_SCAN, "Found '%s', but this version was built without LastFM support\n", file);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FILE_CTRL_SPOTIFY:
|
case FILE_CTRL_SPOTIFY:
|
||||||
#ifdef HAVE_SPOTIFY_H
|
#ifdef HAVE_SPOTIFY_H
|
||||||
spotify_login(file);
|
if (flags & F_SCAN_BULK)
|
||||||
|
DPRINTF(E_LOG, L_SCAN, "Bulk scan will ignore '%s' (to process, add it after startup)\n", file);
|
||||||
|
else
|
||||||
|
spotify_login(file);
|
||||||
#else
|
#else
|
||||||
DPRINTF(E_LOG, L_SCAN, "Detected Spotify file, but this version was built without Spotify support\n");
|
DPRINTF(E_LOG, L_SCAN, "Found '%s', but this version was built without Spotify support\n", file);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user