Added support for link.tospotify.com; add warns for not supported links
Updated PyPi to 1.5.20
This commit is contained in:
parent
d6a18749c0
commit
13f6eab172
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__version__ = "1.5.19"
|
||||
__version__ = "1.5.20"
|
||||
|
|
|
@ -285,6 +285,7 @@ class QueueManager:
|
|||
def generateQueueItem(self, dz, url, settings, bitrate=None, interface=None):
|
||||
bitrate = getBitrateInt(bitrate) or settings['maxBitrate']
|
||||
if 'deezer.page.link' in url: url = urlopen(url).url
|
||||
if 'link.tospotify.com' in url: url = urlopen(url).url
|
||||
|
||||
type = getTypeFromLink(url)
|
||||
id = getIDFromLink(url, type)
|
||||
|
@ -344,7 +345,6 @@ class QueueManager:
|
|||
return QueueError(url, "Wrong URL: "+e.msg[e.msg.find('\n')+2:])
|
||||
except Exception as e:
|
||||
return QueueError(url, "Something went wrong: "+str(e))
|
||||
else:
|
||||
logger.warn("URL not supported yet")
|
||||
return QueueError(url, "URL not supported yet", "unsupportedURL")
|
||||
|
||||
|
|
Loading…
Reference in New Issue