diff --git a/mopidy/local/commands.py b/mopidy/local/commands.py index 80ce5c1d..79c1c505 100644 --- a/mopidy/local/commands.py +++ b/mopidy/local/commands.py @@ -62,9 +62,10 @@ class ScanCommand(commands.Command): self.add_argument('--limit', action='store', type=int, dest='limit', default=None, help='Maximum number of tracks to scan') - self.add_argument('--force', - action='store_true', dest='force', default=False, + self.add_argument('--force', + action='store_true', dest='force', default=False, help='Force rescan of all media files') + def run(self, args, config): media_dir = config['local']['media_dir'] scan_timeout = config['local']['scan_timeout'] @@ -98,7 +99,7 @@ class ScanCommand(commands.Command): mtime = file_mtimes.get(abspath) if mtime is None: logger.debug('Missing file %s', track.uri) - uris_to_remove.add(track.uri) + uris_to_remove.add(track.uri) elif mtime > track.last_modified or args.force: uris_to_update.add(track.uri) uris_in_library.add(track.uri)