WIP - Sound.file instead of Sound.path; fix issues with player; program.path is now relative
This commit is contained in:
		@ -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)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user