-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement custom activity text for TV show episodes #177
base: main
Are you sure you want to change the base?
Conversation
Looks like CI is broken, but i'll try it out once it works again. |
I also went ahead and edited the wiki. Apologies if I jumped ahead - https://github.com/Radiicall/jellyfin-rpc/wiki/Jellyfin |
I was able to add Example// [...]
"shows": {
"display": {
"details_text": "S{season-padded}E{episode-padded} - {title} {sep} {original-title}",
"state_text": "{genres} {sep} {studio}",
"image_text": "{show-title} ({year})"
},
"separator": "•"
},
// [...] ResultSide NoteI tried to also add fields for production year of the show itself and original series title, but for now I don't know how to approach it any different way than applying a workaround to get |
Solves #174
Tested very briefly, but looks like it works as intended.
Example
Result
Changes
display
custom activity text formatting for TV show episodesepisode_display_options
fromClient
struct inlib.rs
- no longer used, replaced byshows_display_options
EpisodeDisplayOptions
struct toDisplayFormat
show_simple
,append_prefix
andadd_divider
) ifshows.display
is not specified in the config.{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}
- separatormovie
display:{original-title}
- movie title in its original language