mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-06 01:31:19 -04:00
Handle very large album names #301
This commit is contained in:
parent
ca18e74203
commit
55affd69c2
1 changed files with 2 additions and 0 deletions
|
@ -1668,6 +1668,8 @@ class Album(Tracklist, Media):
|
||||||
self._get_formatter(),
|
self._get_formatter(),
|
||||||
restrict=restrict,
|
restrict=restrict,
|
||||||
)
|
)
|
||||||
|
if len(formatted_folder) > 120:
|
||||||
|
formatted_folder = f"{formatted_folder[:120]}..."
|
||||||
|
|
||||||
return os.path.join(parent_folder, formatted_folder)
|
return os.path.join(parent_folder, formatted_folder)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue