Shelved GUI and added cli usage instead

This commit is contained in:
RemixDev
2020-02-23 22:51:16 +01:00
parent 9e7411faf9
commit 4f3182783e
5 changed files with 48 additions and 14 deletions

View File

@ -1,6 +1,17 @@
#!/usr/bin/env python3
import re
def getBitrateInt(txt):
txt = str(txt)
if txt in ['flac', 'lossless', '9']:
return 9
elif txt in ['mp3', '320', '3']:
return 3
elif txt in ['128']:
return 1
else:
return None
def getIDFromLink(link, type):
if '?' in link:
link = link[:link.find('?')]