Fixed error when downloading single tracks
This commit is contained in:
parent
ccce111a85
commit
3d0f27b107
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "1.1.10"
|
__version__ = "1.1.11"
|
||||||
|
|
|
@ -993,11 +993,11 @@ def after_download_single(track, settings, queueItem):
|
||||||
if 'extrasPath' not in track:
|
if 'extrasPath' not in track:
|
||||||
track['extrasPath'] = settings['downloadLocation']
|
track['extrasPath'] = settings['downloadLocation']
|
||||||
if settings['saveArtwork'] and 'albumPath' in track:
|
if settings['saveArtwork'] and 'albumPath' in track:
|
||||||
for image in result['albumURLs']:
|
for image in track['albumURLs']:
|
||||||
downloadImage(image['url'], f"{result['albumPath']}.{image['ext']}", settings['overwriteFile'])
|
downloadImage(image['url'], f"{track['albumPath']}.{image['ext']}", settings['overwriteFile'])
|
||||||
if settings['saveArtworkArtist'] and 'artistPath' in track:
|
if settings['saveArtworkArtist'] and 'artistPath' in track:
|
||||||
for image in result['artistURLs']:
|
for image in track['artistURLs']:
|
||||||
downloadImage(image['url'], f"{result['artistPath']}.{image['ext']}", settings['overwriteFile'])
|
downloadImage(image['url'], f"{track['artistPath']}.{image['ext']}", settings['overwriteFile'])
|
||||||
if settings['logSearched'] and 'searched' in track:
|
if settings['logSearched'] and 'searched' in track:
|
||||||
with open(os.path.join(track['extrasPath'], 'searched.txt'), 'wb+') as f:
|
with open(os.path.join(track['extrasPath'], 'searched.txt'), 'wb+') as f:
|
||||||
orig = f.read().decode('utf-8')
|
orig = f.read().decode('utf-8')
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="1.1.10",
|
version="1.1.11",
|
||||||
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