Implemented search fallback

This commit is contained in:
RemixDev
2020-03-22 13:57:31 +01:00
parent a7d16afa41
commit d9ae3f3289
3 changed files with 87 additions and 8 deletions

View File

@ -21,6 +21,8 @@ def getBitrateInt(txt):
def getIDFromLink(link, type):
if '?' in link:
link = link[:link.find('?')]
if link.endswith("/"):
link = link[:-1]
if link.startswith("http") and 'open.spotify.com/' in link:
if type == "spotifyplaylist":