Added support for 'deezer.page.link' urls
This commit is contained in:
parent
98b67fa70a
commit
a96451654c
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__version__ = "1.2.17"
|
||||
__version__ = "1.2.18"
|
||||
|
|
|
@ -9,6 +9,7 @@ import os.path as path
|
|||
import json
|
||||
from os import remove
|
||||
from time import sleep
|
||||
from urllib.request import urlopen
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger('deemix')
|
||||
|
@ -23,6 +24,8 @@ class QueueManager:
|
|||
def generateQueueItem(self, dz, sp, url, settings, bitrate=None, albumAPI=None, interface=None):
|
||||
forcedBitrate = getBitrateInt(bitrate)
|
||||
bitrate = forcedBitrate if forcedBitrate else settings['maxBitrate']
|
||||
if 'deezer.page.link' in url:
|
||||
url = urlopen(url).url
|
||||
type = getTypeFromLink(url)
|
||||
id = getIDFromLink(url, type)
|
||||
|
||||
|
|
Loading…
Reference in New Issue