Skip to content

Commit

Permalink
some clean
Browse files Browse the repository at this point in the history
  • Loading branch information
peynaj committed Dec 24, 2019
1 parent 206b5b5 commit 29b499a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def change_audio_rate(dir_path, speed_rate=2):
prefix = '{}'.format(speed_rate)
prefix = 'rt{}'.format(speed_rate)
if os.path.exists(dir_path):
folder = dir_path.split('/')[-1]
new_dir_path = '/'.join(dir_path.split('/')[:-1]) + '/' + prefix + '.' + folder
Expand Down
2 changes: 1 addition & 1 deletion report.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
r = ['=' * 15 + ' REPORT ' + '=' * 15]
r.append(f'* Path: {path}')
r.append(f'* Length: {len(details)}')
r.append(f'* Sum: {sum(details.values())/60} h')
r.append(f'* Sum: {sum(details.values())/60:.2f} h')
r.append('=' * 40)

for k, v in details.items():
Expand Down

0 comments on commit 29b499a

Please sign in to comment.