Chapter Title value sometimes not cleared when changing tracks

App version

Production v15.0.0

Issue description

The string templates %chapter.title% and %next.chapter.title% sometimes do not have their value cleared when changing to a track without any chapters.

Device type

Phone

Media provider

Local device

Steps to reproduce

Load a queue with at least two tracks: track 1 without chapters and track 2 with chapters. Set an NPS string to show BOTH %chapter.title% and %title%

(See post below for Demo NPS)

Begin playing track 1. The chapter title strings should be blank since there is no chapter info.

Skip to track 2. Chapter strings should now show the chapter info.

Skip back to track 1. Chapter strings should be blank but may instead show values from track 2. (Doesn’t happen every time. Just change tracks a few times until it does.)

Additional information

This doesn’t happen every time but it does happen often.

Specifically, %title% will hold the value of the chaptered track’s first chapter title while %next.title% will hold the value of the last-played chapter title. Other chapter strings seem fine.

Attached video shows %chapter.title% at the top and %next.chapter.title% as the 2nd line of the Top Bar (at the bottom of screen).

Sorry for always finding this stuff after you push the final build.

Screenshots

20260717_161247-ezgif.com-gif-to-webp-converter.webp

I searched existing issues first

on

I understand that logs are mandatory

on

Log upload name / description

Celorien_ChapterName

Update: issue only occurs when %title% and %chapter.title% are both used in a single string slot. (Optionally with “next” prefix.) The value of %chapter.title% is used instead of %title% for the track with chapters:

“Opening” is correct for the Chapter name, not the track title. String shown is this:

{title: %title%}{ ch: %chapter.title%}

Then skipping to a non-chaptered track (forward or back) behaves as I said above:

Only title strings are affected. Once affected, values remain until playback is stopped.

Demo NPS

nps-ch string test-20260717_175022-symfonium.json (38.0 KB)


Affects more than just the custom strings

This issue can also be seen on the Queue page. Same as above: once the media has played, the Track Title is replaced by the last played Chapter Name.

Initially showing Track Titles:

After playing, shows Chapter Names: