Chapter Title value not cleared when changing tracks

App version

Production v15.0.0

Issue description

The string templates %chapter.title% and %next.chapter.title% 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 instead show values taken from track 2.

Additional information

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

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:

Sorry for the bump, but I wanted to make sure this issue didn’t get buried.

I just checked on Beta 5 and this is still present. Let me know if you need fresh logs.