WIP - Sound.file instead of Sound.path; fix issues with player; program.path is now relative

This commit is contained in:
bkfox
2022-03-18 14:12:59 +01:00
parent d17d6831dd
commit e3b744be70
17 changed files with 109 additions and 118 deletions

View File

@ -160,7 +160,7 @@ class Command (BaseCommand):
self.bad = []
self.good = []
for sound in self.sounds:
logger.info('analyse ' + sound.path)
logger.info('analyse ' + sound.file.name)
sound.analyse()
sound.check(attr, minmax[0], minmax[1])
if sound.bad:
@ -171,6 +171,6 @@ class Command (BaseCommand):
# resume
if options.get('resume'):
for sound in self.good:
logger.info('\033[92m+ %s\033[0m', sound.path)
logger.info('\033[92m+ %s\033[0m', sound.file.name)
for sound in self.bad:
logger.info('\033[91m+ %s\033[0m', sound.path)
logger.info('\033[91m+ %s\033[0m', sound.file.name)