Changeset 381


Ignore:
Timestamp:
21/05/08 12:48:21 (2 years ago)
Author:
stuarth
Message:

Marked as compatible with SqueezeCenter? 7.1.
Kick off cleanup after a rescan has been triggered (this is supposed to remove the old items).
Marked plugin as only being compatible with Linux (for now).

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r363 r381  
    2020# $Id$ 
    2121 
    22 VERSION=1.0b3 
     22VERSION=1.0b4 
    2323PERLSOURCE=Plugin.pm Settings.pm 
    2424HTMLSOURCE=HTML/EN/plugins/AutoRescan/settings/basic.html 
  • trunk/Plugin.pm

    r362 r381  
    220220        $inotify->poll; 
    221221 
     222        # Flag of whether any rescanning was performed. 
     223        my $scan_done = 0; 
     224 
    222225        # We don't perform any rescanning if a scan is currently underway - we 
    223226        # defer it until it's finished. 
     
    231234                        if ($touchedDirs{$dir} < $triggerTime) { 
    232235                                $log->info("Triggering RESCAN of folder: $dir"); 
     236                                $scan_done = 1; 
    233237 
    234238                                # Rescan the changed directory. 
     
    255259                        } 
    256260                } 
     261        } 
     262 
     263        # If a rescan was performed then do a database cleanup. This is necessary 
     264        # to remove items from the database that no longer exist - eg the old file 
     265        # if the file has been renamed or moved. 
     266        # Note that this might be slow since it has to traverse every file in the 
     267        # database - that shouldn't be too much of an annoyance, though, since 
     268        # the user is assumed to have just moved music around and it won't happen 
     269        # too often. 
     270        if ($scan_done) { 
     271                $log->info("One or more scans have been performed. Now performing cleanup"); 
     272                Slim::Schema->cleanupStaleTrackEntries; 
    257273        } 
    258274 
  • trunk/install.xml

    r358 r381  
    4141                <id>SqueezeCentre</id> 
    4242                <minVersion>7.0a</minVersion> 
    43                 <maxVersion>7.0+</maxVersion> 
     43                <maxVersion>7.1+</maxVersion> 
    4444        </targetApplication> 
     45 
     46        <targetPlatform>Linux</targetPlatform> 
    4547</extension> 
Note: See TracChangeset for help on using the changeset viewer.