briefly tested TV Episodes and they seem to work as they did before, haven't tested AudioBooks, Books or Live TV
API change: new struct DisplayFormat
replaces Vec<String> as display type in DisplayOptions
options of type String or Vec<String> get converted to DisplayOptions for legacy configuration support
supported formatting items:
music:
{track} - track title
{album} - album title
{artists} - album artists, comma-separated
{genres} - genres, comma-separated
{year} - album release year
{version} - Jellyfin-RPC version, used for default image_text
{sep} - separator
movies:
{title} - movie title
{genres} - genres, comma-separated
{year} - movie release year
{critic-score} - RT critic score
{community-score} - RT community score
{version} - Jellyfin-RPC version, used for default image_text
{sep} - separator
display format texts are sanitized
unnecessary whitespaces are removed (e.g. whitespaces in the beginning, end and multiple space characters in a row)
duplicated or "dangling" separators are removed - this should take care of situations when some field is empty and separators can be placed one after another
Solves #154
Changes
Add support for new
display
format formusic
andmovies
:Music: Movie:
Just for fun, another example config, with emojis:
Music:
Movies:
tested with old configuration:
briefly tested TV Episodes and they seem to work as they did before, haven't tested AudioBooks, Books or Live TV
API change: new struct
DisplayFormat
Vec<String>
asdisplay
type inDisplayOptions
String
orVec<String>
get converted toDisplayOptions
for legacy configuration supportsupported formatting items:
{track}
- track title{album}
- album title{artists}
- album artists, comma-separated{genres}
- genres, comma-separated{year}
- album release year{version}
- Jellyfin-RPC version, used for defaultimage_text
{sep}
- separator{title}
- movie title{genres}
- genres, comma-separated{year}
- movie release year{critic-score}
- RT critic score{community-score}
- RT community score{version}
- Jellyfin-RPC version, used for defaultimage_text
{sep}
- separatordisplay format texts are sanitized
Example:
"state_text": "{genres} {sep} {critic-score} {sep} {community-score}"
{genres} {sep} {sep} {community-score}
it should return{genres} {sep} {community-score}