More code cleanup

This commit is contained in:
RemixDev
2020-09-24 19:20:01 +02:00
parent 975fdf95dd
commit 4a573233a1
4 changed files with 166 additions and 81 deletions

View File

@ -1,6 +1,9 @@
import re
import string
def generateReplayGainString(trackGain):
return "{0:.2f} dB".format((float(trackGain) + 18.4) * -1)
def getBitrateInt(txt):
txt = str(txt).lower()
if txt in ['flac', 'lossless', '9']: