Started working on the UI

This commit is contained in:
RemixDev
2020-04-08 00:19:27 +02:00
parent e0cc901a9d
commit 6daf0f1a1c
4 changed files with 83 additions and 4 deletions

View File

@ -84,3 +84,11 @@ def getTypeFromLink(link):
elif '/artist' in link:
type = 'artist'
return type
def isValidLink(text):
if text.lower().startswith("http"):
if "deezer.com" in text.lower() or "open.spotify.com" in text.lower():
return True
elif text.lower().startswith("spotify:"):
return True
return False