Browse Source

Fixed Spotify URL parsing and version bump to 2.0.16

main
RemixDev 6 months ago
parent
commit
67fcb7d37f
Signed by untrusted user: RemixDev GPG Key ID: B33962B465BDB51C
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      deemix/__init__.py
  2. +1
    -0
      deemix/utils/__init__.py
  3. +1
    -1
      setup.py

+ 1
- 1
deemix/__init__.py View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3
__version__ = "2.0.15"
__version__ = "2.0.16"
USER_AGENT_HEADER = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) " \
"Chrome/79.0.3945.130 Safari/537.36"
VARIOUS_ARTISTS = "5080"

+ 1
- 0
deemix/utils/__init__.py View File

@ -69,6 +69,7 @@ def getIDFromLink(link, type):
link = link[:-1]
if link.startswith("http") and 'open.spotify.com/' in link:
if '&' in link: link = link[:link.find('&')]
if type == "spotifyplaylist":
return link[link.find("/playlist/") + 10:]
if type == "spotifytrack":


+ 1
- 1
setup.py View File

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


Loading…
Cancel
Save