Skip to content

SMP_PlayControl 2.0.50 — Generalized Title Formatting

Choose a tag to compare

@whistlechips whistlechips released this 19 Sep 20:45
· 5 commits to main since this release
799438c

SMP_PlayControl 2.0.50

Generalized Title Formatting

This release updates PlayControl's Title Formatting handling so that
Title Formatting expressions are evaluated directly by foobar2000.

Changes

  • Updated the tfo class to use EvalWithMetadb() for Title Formatting
    evaluation.
  • PlayControl can now use the full foobar2000 Title Formatting language
    without requiring individual functions to be implemented in JavaScript.
  • Functions such as $max(), $min(), $if(), $ifgreater(), and other
    native Title Formatting functions are now processed by foobar2000.
  • Retained special handling for $rgb() so it can continue to control
    text color within PlayControl's drawing routines.
  • No intentional changes were made to panel geometry, playback controls,
    artwork, wallpaper, Last.fm functionality, or other existing behavior.

Testing

The new Title Formatting implementation was tested with:

  • $max(%play_count%,10)
  • [%codec%] • $max(%bitrate%,320) kbps
  • $rgb(255,128,0)%codec%$rgb() • $max(%bitrate%,320) kbps
    All tested successfully.

Files

The release package contains the consolidated PlayControl script and
updated project README.
This is a maintenance release within the 2.0.x development series.