Skip to content

Commit

Permalink
Fix: limit download filenames to 255 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Ion Babin committed Jul 7, 2024
1 parent 49878aa commit 0939309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streamrip/media/album.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ def _album_folder(self, parent: str, meta: AlbumMetadata) -> str:
meta.format_folder_path(formatter), config.filepaths.restrict_characters
)

return os.path.join(parent, folder)
# limit to 255 characters (max filename length)
return os.path.join(parent, folder[:254])

0 comments on commit 0939309

Please sign in to comment.