Added support for 'deezer.page.link' urls

This commit is contained in:
RemixDev 2020-09-07 12:25:00 +02:00
parent 98b67fa70a
commit a96451654c
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env python3
__version__ = "1.2.17"
__version__ = "1.2.18"

View File

@ -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)

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup(
name="deemix",
version="1.2.17",
version="1.2.18",
description="A barebone deezer downloader library",
long_description=README,
long_description_content_type="text/markdown",