mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
badfiles: Fixed weird use of sum
This commit is contained in:
parent
ecf677ae41
commit
27075ea037
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class BadFiles(BeetsPlugin):
|
||||||
errors, output = self.run_command(["mp3val", path])
|
errors, output = self.run_command(["mp3val", path])
|
||||||
if errors == 0:
|
if errors == 0:
|
||||||
output = [line for line in output if line.startswith("WARNING:")]
|
output = [line for line in output if line.startswith("WARNING:")]
|
||||||
errors = sum(1 for line in output if line.startswith("WARNING:"))
|
errors = len(output)
|
||||||
return errors, output
|
return errors, output
|
||||||
|
|
||||||
def check_flac(self, path):
|
def check_flac(self, path):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue