Index: HTML/Default/pageheader.html
===================================================================
--- HTML/Default/pageheader.html (revision 3584)
+++ HTML/Default/pageheader.html (working copy)
@@ -6,8 +6,24 @@
+ [% IF warn %]
+
+ [% END %]
+
-
+
Index: HTML/Default/home.html
===================================================================
--- HTML/Default/home.html (revision 3584)
+++ HTML/Default/home.html (working copy)
@@ -1,5 +1,6 @@
[% pageicon = 'home' %]
[% pagetitle = "HOME" | string %]
+ [% bodyscript = 'onload="doLoad();"' %]
[% PROCESS pageheader.html %]
 |
@@ -12,7 +13,9 @@
 |
- [% IF song_count %][% "LIBRARY_CONTAINS" | string %] [% album_count %] [% "WITH" | string %] [% song_count %] [% "BY" | string %] [% artist_count %].[% END %][% IF newVersion %]
[% newVersion %][% END %] |
+
+ [% IF warn %] [% "NOTE" | string %] [% "HOME_SCAN_WARNING" | string %] [% END %]
+ [% IF song_count %][% "LIBRARY_CONTAINS" | string %] [% album_count %] [% "WITH" | string %] [% song_count %] [% "BY" | string %] [% artist_count %].[% END %][% IF newVersion %]
[% newVersion %][% END %] |
|
Index: Slim/Web/Pages.pm
===================================================================
--- Slim/Web/Pages.pm (revision 3584)
+++ Slim/Web/Pages.pm (working copy)
@@ -706,8 +718,10 @@
sub addLibraryStats {
my ($params, $genre, $artist, $album) = @_;
- return if Slim::Utils::Misc::stillScanning();
-
+ if (Slim::Music::Import::stillScanning()) {
+ $params->{'warn'} = 1;
+ return;
+ }
my $ds = Slim::Music::Info::getCurrentDataStore();
my $find = {};
@@ -1880,10 +1894,6 @@
$params->{'descend'} = $descend;
- if (Slim::Music::Import::stillScanning()) {
- $params->{'warn'} = 1;
- }
-
# override the template for the playlist case.
my $template = $levelInfo->{'browseBodyTemplate'} || 'browsedb.html';