scanner: Better info logging

This commit is contained in:
Stein Magnus Jodal 2012-12-11 12:09:55 +01:00
parent 40aa6db3c4
commit 3d86610dfe

View File

@ -58,13 +58,14 @@ def main():
logging.debug('Debug info for %s: %s', uri, debug)
logging.info('Scanning %s', settings.LOCAL_MUSIC_PATH)
scanner = Scanner(settings.LOCAL_MUSIC_PATH, store, debug)
try:
scanner.start()
except KeyboardInterrupt:
scanner.stop()
logging.info('Done')
logging.info('Done scanning; writing tag cache...')
for row in mpd_translator.tracks_to_tag_cache_format(tracks):
if len(row) == 1:
@ -72,6 +73,8 @@ def main():
else:
print ('%s: %s' % row).encode('utf-8')
logging.info('Done writing tag cache')
def parse_options():
parser = optparse.OptionParser(