If the post has no title, folder name would be only post ID (coomer)
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 579
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
In the config I set folder naming format to [{published}] {title}, and I noticed some downloaded contents folders are just post ID not published date+title, then I figured out that those are posts without title.
Configuration
KTOOLBOX_API__FILES_NETLOC=coomer.st
KTOOLBOX_API__NETLOC=coomer.st
KTOOLBOX_API__STATICS_NETLOC=img.coomer.st
KTOOLBOX_JOB__POST_DIRNAME_FORMAT='[{published}] {title}'
Platform
- OS: Windows
- KToolBox Version: 0.23.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by searching the code for KTOOLBOX_JOB__POST_DIRNAME_FORMAT and the logic that builds post folders, then reproduce the case with a post that has no title on Windows. Done should mean the configured naming behavior is handled consistently for title-less posts instead of producing a folder named only by post ID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100