Trailing white space and expected blank line fix
This commit is contained in:
parent
87ea3c9745
commit
b2976dccb6
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user