This release changes how the activity is formatted for music and movies. Config changes are not needed for this release.
Thanks to @hozarho for effectively writing the release notes in #165!! Their PR was written really well!!!
Changes
-
Add support for new
display
format formusic
andmovies
:// [...] "music": { "display": { "details_text": "{track}", "state_text": "{artists} {sep} {genres}", "image_text": "{album} ({year})" }, "separator": "•" }, "movies": { "display": { "details_text": "{title} ({year})", "state_text": "{genres} {sep} {critic-score} {sep} {community-score}", "image_text": "{title} ({year})" }, "separator": "•" }, // [...]
Just for fun, another example config, with emojis:
// [...] "music": { "display": { "details_text": "🎧 {track}", "state_text": "👤 {artists} 🎭 {genres}", "image_text": "💿 {album} ({year})" }, "separator": "•" }, "movies": { "display": { "details_text": "🎬 {title} ({year})", "state_text": "🎭 {genres} {critic-score} {community-score}", "image_text": "🎬 {title} ({year})" }, "separator": "•" }, // [...]
-
old configurations such as this will still function:
"music": { "display": ["album", "year", "genres"], "separator": "::" }, "movies": { "display": "year, genres, critic-score, community-score", "separator": "-" },
-
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 defaultimage_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 defaultimage_text
{sep}
- separator
- music:
-
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
Example:
- config:
"state_text": "{genres} {sep} {critic-score} {sep} {community-score}"
- currently played movie has no critic score
- instead of
{genres} {sep} {sep} {community-score}
it should return{genres} {sep} {community-score}
- config:
-
-
API change: new struct
DisplayFormat
- replaces
Vec<String>
asdisplay
type inDisplayOptions
- options of type
String
orVec<String>
get converted toDisplayOptions
for legacy configuration support
- replaces
What's Changed
- Default config file name fixes by @220111 in #163
- Implement custom activity text formatting by @hozarho in #165
- bump to version 1.3.1 by @JustTemmie in #170
New Contributors
Full Changelog: 1.3.0...1.3.1