mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
Labels
No labels
api-drift
bug
ci
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Glitchy-Sheep/boosty-downloader#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @avrohop5691-del on GitHub (Mar 2, 2026).
Original GitHub issue: https://github.com/Glitchy-Sheep/boosty-downloader/issues/93
Originally assigned to: @Glitchy-Sheep on GitHub.
When downloading posts with very long titles (particularly those containing Cyrillic characters), the downloader fails with OSError: [Errno 36] File name too long on Linux systems. This happens because the post title is used as a directory name, exceeding the 255-byte limit of filesystems like ext4. Since UTF-8 characters like Cyrillic are multi-byte, the character count might look safe while the byte count is not.
Proposed fix:
The directory name needs to be truncated based on byte length rather than character length to ensure it stays within OS limits while remaining valid UTF-8.
Location: boosty_downloader/src/infrastructure/html_generator/renderer.py (and potentially download_single_post.py).
Applied the following patch that seems to solve the problem (at least in my case):
Potentially a more elegant solution would be to add some option (--max-title-length maybe) to configure the maximum title length. Consider this for a future release.
@Glitchy-Sheep commented on GitHub (Mar 6, 2026):
Hey! Thank you for the report.
Yeah, I haven't encountered this personally.
But it's definitely important to check, because it's not rare for Boosty titles to exceed 255 bytes (it's even worse with UTF-8, which uses multiple bytes per character).
I'll research the problem across different OSes and prepare a patch.