mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
[PR #98] [MERGED] Handle posts with missing or empty titles gracefully #107
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#107
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?
📋 Pull Request Information
Original PR: https://github.com/Glitchy-Sheep/boosty-downloader/pull/98
Author: @Glitchy-Sheep
Created: 4/11/2026
Status: ✅ Merged
Merged: 4/11/2026
Merged by: @Glitchy-Sheep
Base:
main← Head:fix/title-validation-fail📝 Commits (2)
4d159b1Handle posts with missing or empty titles gracefullyc05b8f6Ruff format📊 Changes
3 files changed (+16 additions, -2 deletions)
View changed files
📝
boosty_downloader/src/application/use_cases/download_all_posts.py(+1 -1)📝
boosty_downloader/src/application/use_cases/download_specific_post.py(+5 -1)📝
boosty_downloader/src/infrastructure/boosty_api/models/post/post.py(+10 -0)📄 Description
Fix posts with missing or empty titles causing validation errors
📝 Description
Boosty posts have
nulltitle in the API response when the title is empty (instead of empty string), which causes Pydantic validation errors when parsing the post data.This PR adds defensive handling at two levels:
field_validatorconvertsNonetitle to an empty string, preventing validation failures"No title (id_...)"fallback for posts with empty titles🔄 Changelog
nullfor post title🎯 Related Issue
Closes #79
✅ Checklist
make testand your own judgment)make lint && make format)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.