github Radiicall/jellyfin-rpc 1.3.1
v1.3.1 | Custom Activity Formatting

17 hours ago

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 for music and movies:

    // [...]
    "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": "•"
    },
    // [...]

    Music:
    image
    Movie:
    image

    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": "•"
    },
    // [...]

    Music:
    image

    Movies:
    image

  • 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 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

      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}
  • 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

What's Changed

New Contributors

Full Changelog: 1.3.0...1.3.1

Don't miss a new jellyfin-rpc release

NewReleases is sending notifications on new releases.