Fixed #40
This commit is contained in:
parent
da34c289a7
commit
2a82a9a663
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "1.2.20"
|
__version__ = "1.2.21"
|
||||||
|
|
|
@ -68,7 +68,7 @@ def downloadImage(url, path, overwrite="n"):
|
||||||
return downloadImage(urlBase+pictureUrl.replace(str(pictureSize)+"x"+str(pictureSize), '1200x1200'), path, overwrite)
|
return downloadImage(urlBase+pictureUrl.replace(str(pictureSize)+"x"+str(pictureSize), '1200x1200'), path, overwrite)
|
||||||
logger.error("Image not found: "+url)
|
logger.error("Image not found: "+url)
|
||||||
except (request_exception.ConnectionError, request_exception.ChunkedEncodingError) as e:
|
except (request_exception.ConnectionError, request_exception.ChunkedEncodingError) as e:
|
||||||
logger.error("Couldn't download Image, retrying in 5 seconds...: "url+"\n")
|
logger.error("Couldn't download Image, retrying in 5 seconds...: "+url+"\n")
|
||||||
sleep(5)
|
sleep(5)
|
||||||
return downloadImage(url, path, overwrite)
|
return downloadImage(url, path, overwrite)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="1.2.20",
|
version="1.2.21",
|
||||||
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