Added removeDuplicateArtists option

This commit is contained in:
RemixDev
2020-06-10 20:18:17 +02:00
parent 42e55b3f06
commit 56bd8fac54
3 changed files with 22 additions and 3 deletions

View File

@ -89,6 +89,14 @@ def getTypeFromLink(link):
return type
def uniqueArray(arr):
for iPrinc, namePrinc in enumerate(arr):
for iRest, nRest in enumerate(arr):
if iPrinc!=iRest and namePrinc.lower() in nRest.lower():
del arr[iRest]
return arr
def isValidLink(text):
if text.lower().startswith("http"):
if "deezer.com" in text.lower() or "open.spotify.com" in text.lower():