Skip to content

Keep Unicode titles from lossy download output#98

Merged
vanloctech merged 1 commit into
vanloctech:mainfrom
anhtahaylove:pr/unicode-safe-download-title
Jul 4, 2026
Merged

Keep Unicode titles from lossy download output#98
vanloctech merged 1 commit into
vanloctech:mainfrom
anhtahaylove:pr/unicode-safe-download-title

Conversation

@anhtahaylove

Copy link
Copy Markdown
Contributor

Summary

  • keep single-download display titles from metadata or UTF-8 final file paths before falling back to progress output
  • preserve playlist item title behavior for multi-item downloads
  • add focused tests for Unicode metadata, UTF-8 filepath fallback, and playlist title precedence

Test

  • bun run build:sdk
  • cargo test display_title --lib
  • cargo check

Windows process output can drop Vietnamese characters in yt-dlp progress lines, so completed single downloads now prefer metadata or the UTF-8 final filepath when choosing the display title. Playlist items keep the current item title so collection/history rows do not regress.

Constraint: yt-dlp stdout/stderr can be decoded differently from the final filesystem path on Windows.

Rejected: Always prefer filepath titles | playlist outputs can use representative filenames that are less accurate than the current playlist item title.

Confidence: high

Scope-risk: narrow

Directive: Do not let lossy progress output override a known-good metadata or final filepath title for single downloads.

Tested: bun run build:sdk

Tested: cargo test display_title --lib

Tested: cargo check
@vanloctech vanloctech merged commit 3800e40 into vanloctech:main Jul 4, 2026
3 checks passed
@anhtahaylove anhtahaylove deleted the pr/unicode-safe-download-title branch July 4, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants