Solves #174
Tested very briefly, but looks like it works as intended.
Example
// [...] "episodes": { "display": { "details_text": "S{season-padded}E{episode-padded} - {title} {sep} {original-title}", "state_text": "{genres} {sep} {studio}", "image_text": "{show-title} ({year})" }, "separator": "•" }, // [...]
Result
Changes
Add support for
display
custom activity text formatting for TV show episodesAPI changes:
- removed
episode_display_options
fromClient
struct inlib.rs
- no longer used, replaced byepisodes_display_options
- it's now possible to convert
EpisodeDisplayOptions
struct toDisplayFormat
* Works with legacy configuration (`show_simple`, `append_prefix` and `add_divider`) if `episodes.display` is not specified in the config.
Supported formatting items:
{show-title}
- the TV show title{title}
- title of the episode{original-title}
- title of the episode in its original language{episode}
- number of the episode, not padded - for example5
{episode-padded}
- number of the episode, padded with zero - for example05
{season}
- number of the season, not padded - for example2
{season-padded}
- number of the season, padded with zero - for example02
{year}
- release year of current episode{genres}
- TV show genres{studio}
- studio of the TV show{version}
- Jellyfin-RPC version, used for default image_text{sep}
- separatorAdded formatting item for
movie
display:
{original-title}
- movie title in its original language// [...] "movies": { "display": { "details_text": "{title} ({year}) {sep} {original-title}", // [...]
What's Changed
- fix workflows by @Radiicall in #178
- Update installer by @BotBlake in #173
- Fixed library blacklist behaviour by @Zoarial94 in #157
- Fix timeout error when installing gcc for ubuntu arm 32/64 by @0xGingi in #184
- Fix Github building MacOS x86_64 as arm64 by @0xGingi in #183
- Bump ring from 0.17.5 to 0.17.13 by @dependabot in #185
- Bump tokio from 1.33.0 to 1.44.2 by @dependabot in #188
- Implement custom activity text for TV show episodes by @hozarho in #177
New Contributors
- @BotBlake made their first contribution in #173
- @Zoarial94 made their first contribution in #157
- @0xGingi made their first contribution in #184
Full Changelog: 1.3.1...1.3.2