mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-11-22 11:05:25 +01:00
Handle request exceptions
This commit is contained in:
parent
3919984a75
commit
17c8ff5ece
@ -96,17 +96,20 @@ class QobuzDL:
|
|||||||
).group(1)
|
).group(1)
|
||||||
|
|
||||||
def download_from_id(self, item_id, album=True, alt_path=None):
|
def download_from_id(self, item_id, album=True, alt_path=None):
|
||||||
downloader.download_id_by_type(
|
try:
|
||||||
self.client,
|
downloader.download_id_by_type(
|
||||||
item_id,
|
self.client,
|
||||||
self.directory if not alt_path else alt_path,
|
item_id,
|
||||||
str(self.quality),
|
self.directory if not alt_path else alt_path,
|
||||||
album,
|
str(self.quality),
|
||||||
self.embed_art,
|
album,
|
||||||
self.ignore_singles_eps,
|
self.embed_art,
|
||||||
self.quality_fallback,
|
self.ignore_singles_eps,
|
||||||
self.cover_og_quality,
|
self.quality_fallback,
|
||||||
)
|
self.cover_og_quality,
|
||||||
|
)
|
||||||
|
except requests.exceptions.RequestException as e:
|
||||||
|
logger.error(f"Error getting release: {e}")
|
||||||
|
|
||||||
def handle_url(self, url):
|
def handle_url(self, url):
|
||||||
possibles = {
|
possibles = {
|
||||||
|
2
setup.py
2
setup.py
@ -13,7 +13,7 @@ requirements = read_file("requirements.txt").strip().split()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=pkg_name,
|
name=pkg_name,
|
||||||
version="0.7.1",
|
version="0.7.2",
|
||||||
author="Vitiko",
|
author="Vitiko",
|
||||||
author_email="vhnz98@gmail.com",
|
author_email="vhnz98@gmail.com",
|
||||||
description="The complete Lossless and Hi-Res music downloader for Qobuz",
|
description="The complete Lossless and Hi-Res music downloader for Qobuz",
|
||||||
|
Loading…
Reference in New Issue
Block a user