mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-02 16:19:53 -04:00
Fix TIDAL crash for low-quality albums #281
This commit is contained in:
parent
1a1b35696a
commit
a8b4c89fc6
1 changed files with 7 additions and 3 deletions
|
@ -1495,7 +1495,11 @@ class Album(Tracklist, Media):
|
|||
"""
|
||||
# Generate the folder name
|
||||
self.folder_format = kwargs.get("folder_format", FOLDER_FORMAT)
|
||||
self.quality = min(kwargs.get("quality", 3), self.client.max_quality)
|
||||
self.quality = min(
|
||||
kwargs.get("quality", 3),
|
||||
self.client.max_quality,
|
||||
self.meta.get("quality", 5),
|
||||
)
|
||||
|
||||
self.container = get_container(self.quality, self.client.source)
|
||||
# necessary to format the folder
|
||||
|
@ -1521,8 +1525,8 @@ class Album(Tracklist, Media):
|
|||
self.folder,
|
||||
kwargs.get("keep_hires_cover", True),
|
||||
(
|
||||
kwargs.get("max_artwork_width", 999999),
|
||||
kwargs.get("max_artwork_height", 999999),
|
||||
kwargs.get("max_artwork_width", 1e9),
|
||||
kwargs.get("max_artwork_height", 1e9),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue