Skip to content

Commit

Permalink
trim bitrate to length of 3
Browse files Browse the repository at this point in the history
as mentioned in #3

first try, probably can be done better by using math instead of string operations
  • Loading branch information
Schweinepriester committed Jun 11, 2015
1 parent fa770a8 commit 189b8cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ album_fields:
total = 0
for item in items:
total += item.bitrate
return total / len(items)
bitrate = total / len(items)
return str(bitrate)[:3]

0 comments on commit 189b8cc

Please sign in to comment.