Fixed playlist downloading
This commit is contained in:
parent
8b70e1424e
commit
6f6523ff8b
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "2.0.2"
|
__version__ = "2.0.3"
|
||||||
USER_AGENT_HEADER = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) " \
|
USER_AGENT_HEADER = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) " \
|
||||||
"Chrome/79.0.3945.130 Safari/537.36"
|
"Chrome/79.0.3945.130 Safari/537.36"
|
||||||
|
|
|
@ -264,6 +264,7 @@ class Track:
|
||||||
'name': albumAPI_gw['ART_NAME'],
|
'name': albumAPI_gw['ART_NAME'],
|
||||||
'pic': None
|
'pic': None
|
||||||
}
|
}
|
||||||
|
self.album['rootArtist'] = None
|
||||||
|
|
||||||
# albumAPI_gw doesn't contain the artist cover
|
# albumAPI_gw doesn't contain the artist cover
|
||||||
# Getting artist image ID
|
# Getting artist image ID
|
||||||
|
@ -359,6 +360,7 @@ class Track:
|
||||||
'pic': playlist['various_artist']['picture_small'][
|
'pic': playlist['various_artist']['picture_small'][
|
||||||
playlist['various_artist']['picture_small'].find('artist/') + 7:-24]
|
playlist['various_artist']['picture_small'].find('artist/') + 7:-24]
|
||||||
}
|
}
|
||||||
|
self.playlist['rootArtist'] = None
|
||||||
if settings['albumVariousArtists']:
|
if settings['albumVariousArtists']:
|
||||||
self.playlist['artist'] = {"Main": [playlist['various_artist']['name'], ]}
|
self.playlist['artist'] = {"Main": [playlist['various_artist']['name'], ]}
|
||||||
self.playlist['artists'] = [playlist['various_artist']['name'], ]
|
self.playlist['artists'] = [playlist['various_artist']['name'], ]
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="2.0.2",
|
version="2.0.3",
|
||||||
description="A barebone deezer downloader library",
|
description="A barebone deezer downloader library",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in New Issue