Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed Mar 26, 2020
1 parent 0856d76 commit 9a766c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions specky/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def check(path, **kwargs):
return

assert os.path.isdir(path)
for filename in glob.glob(path + '/**/*.mp3', recursive=True):
for filename in glob.glob(path + "/**/*.mp3", recursive=True):
_check_file(filename, **kwargs)
return

Expand Down Expand Up @@ -139,7 +139,9 @@ def _check_file(filename, min_freq=1.0e-2, window_length_s=0.05, channel=0):
expected_max_freq = val

if f[k] > expected_max_freq:
print(f"{Fore.GREEN}{filename} seems good.{Style.RESET_ALL}")
print(
f"{Fore.GREEN}{filename} seems good [{bitrate} kbps].{Style.RESET_ALL}"
)
else:
print(
f"{Fore.RED}{filename} is MP3 [{bitrate} kbps], but has max frequency "
Expand Down
2 changes: 1 addition & 1 deletion specky/cli/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def check(argv=None):
# Parse command line arguments.
parser = _get_parser()
args = parser.parse_args(argv)
main_check(args.filename)
main_check(args.path)


def _get_parser():
Expand Down

0 comments on commit 9a766c4

Please sign in to comment.