Ljzd-PRO / Ljzd-PRO/KToolBox

If the post has no title, folder name would be only post ID (coomer)

Open
#358 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.