Skip to content

Commit

Permalink
Try to avoid running the scanner before all plugins have be installed…
Browse files Browse the repository at this point in the history
…. Otherwise the MAI importer would not be run on an initial scan.

Signed-off-by: Michael Herger <michael@herger.net>
  • Loading branch information
michaelherger committed Jan 31, 2025
1 parent bbd9288 commit fe12f0a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Slim/Web/Settings/Server/Wizard.pm
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ sub handler {
$paramRef->{pluginsJSON} = to_json($paramRef->{plugins});

$serverPrefs->set('dontTriggerScanOnPrefChange', $scanOnChange) if $scanOnChange;
Slim::Music::Import->doQueueScanTasks(0);
Slim::Music::Import->nextScanTask();

# if the wizard has been run for the first time, redirect to the main we page
if ($paramRef->{firstTimeRunCompleted}) {
Expand All @@ -221,6 +219,9 @@ sub handler {

if (Slim::Utils::PluginDownloader->downloading) {
$finalizeCb = sub {
Slim::Music::Import->doQueueScanTasks(0);
Slim::Music::Import->nextScanTask();

Slim::Web::HTTP::filltemplatefile($class->page, $paramRef);
$pageSetup->( $client, $paramRef, Slim::Web::HTTP::filltemplatefile($class->page, $paramRef), $httpClient, $response );
};
Expand All @@ -229,6 +230,9 @@ sub handler {
}
}

Slim::Music::Import->doQueueScanTasks(0);
Slim::Music::Import->nextScanTask();

if ($client) {
$paramRef->{playericon} = Slim::Web::Settings::Player::Basic->getPlayerIcon($client,$paramRef);
$paramRef->{playertype} = $client->model();
Expand Down

0 comments on commit fe12f0a

Please sign in to comment.