Skip to content

fix: use Split limit 2 to handle titles containing pipe characters - #782

Open
Bolt4243 wants to merge 2 commits into
mpvnet-player:mainfrom
Bolt4243:fix/recent-title-pipe
Open

Bolt4243 wants to merge 2 commits into
mpvnet-player:mainfrom
Bolt4243:fix/recent-title-pipe

Conversation

@Bolt4243

Copy link
Copy Markdown

GetTitleAndPath in src/MpvNet/App.cs splits the path|title input on every |, so titles that contain a pipe character are silently truncated.

Passing a count of 2 to Split ensures only the first pipe is treated as a separator, preserving any pipe characters in the title portion.

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.

1 participant