github Radiicall/jellyfin-rpc 1.3.2
v1.3.2 | Custom Episode Activity Format

latest release: 1.3.3
4 months ago

Written by @hozarho in #177

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

image

Changes

  • Add support for display custom activity text formatting for TV show episodes

  • API changes:

    • removed episode_display_options from Client struct in lib.rs - no longer used, replaced by episodes_display_options
    • it's now possible to convert EpisodeDisplayOptions struct to DisplayFormat
* 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 example 5
    • {episode-padded} - number of the episode, padded with zero - for example 05
    • {season} - number of the season, not padded - for example 2
    • {season-padded} - number of the season, padded with zero - for example 02
    • {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} - separator
  • Added formatting item for movie display:

    • {original-title} - movie title in its original language
      // [...]
      "movies": {
        "display": {
          "details_text": "{title} ({year}) {sep} {original-title}",
      // [...]
      

image

What's Changed

New Contributors

Full Changelog: 1.3.1...1.3.2

Don't miss a new jellyfin-rpc release

NewReleases is sending notifications on new releases.