Giter Site home page Giter Site logo

radiicall / jellyfin-rpc Goto Github PK

View Code? Open in Web Editor NEW
163.0 4.0 11.0 345 KB

Displays the content you're currently watching on Discord!

License: GNU General Public License v3.0

Rust 78.06% Python 21.94%
discord discord-presence discord-rich-presence jellyfin rich-presence rich-presence-discord rust rpc

jellyfin-rpc's Introduction

Jellyfin-RPC

License Crates.io Downloads Visitors

Frequently Asked Questions

Program used to display what you're currently watching on discord.

Jellyfin-RPC uses the API to check what you're currently watching, this means that the program can be ran from a server or your computer. The only requirement is that discord is open and logged in.

Install

For installation instructions refer to the Wiki

Setup

For setup instructions refer to the Wiki

Pictures of Jellyfin-RPC in action

Movie

Jellyfin-RPC Displaying a Movie in Discord

Episode

Jellyfin-RPC Displaying a TV Show Episode in Discord

Music

Jellyfin-RPC Displaying a Song in Discord

Live TV

Jellyfin-RPC Displaying a TV Channel in Discord

Book

Jellyfin-RPC Displaying a Book in Discord

Audiobook

Jellyfin-RPC Displaying an Audiobook in Discord

Terminal

Image of terminal/cmd output

Star History

Star History Chart

jellyfin-rpc's People

Contributors

ccrsxx avatar dependabot[bot] avatar emeryxwildfire avatar justtemmie avatar pogmommy avatar prochy-exe avatar radiicall avatar xenoncolt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jellyfin-rpc's Issues

Doesnt work or crashes

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

i turn on my pc, it works for a few mins or songs thenit crashes and it just doesnt want to work again even if i finish the process or restart jellyfin and discord too
image

Terminal output

image

Jellyfin-RPC version

0.14.4

What OS are you using?

Windows 11

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Crash when playing music (linux)

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

Loading music within jellyfin crashes jellyfin-rpc on linux. Works as expected for videos.

Terminal output

thread 'main' panicked at 'called Option::unwrap() on a None value', src/services/jellyfin.rs:267:66
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Jellyfin-RPC version

0.14.1

What OS are you using?

Linux Mint 21.2 Cinnamon

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

No space between artist and genre

Describe the bug
The rich presence doesn't have any separation between the artist and genre.

To Reproduce
Steps to reproduce the behavior:

  1. Play a song
  2. Check your rich presence

Expected behavior
There is a space followed by a dash between the artist and genre to clearly separate the two.

Screenshots
image
image

Information:

  • Server OS: Ubuntu
  • Client OS: Windows
  • Jellyfin Server Version: 10.8.10
  • Jellyfin-RPC Version: 0.11.1

Program (.exe binary) not launching

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

Tried launching jellyfin-rpc.exe, and it launched a blank CMD window which automatically closes a few milliseconds later. No logs or errors printed.

Terminal output

No output - cmd window closes right after opening launching it.

Jellyfin-RPC version

0.14.1

What OS are you using?

Windows 10 Pro

What version is the Jellyfin server on?

10.8.9

Anything else?

No response

HTTPS with custom created certificates doesn't work

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

When setting up jellyfin-rpc with a HTTPS URL that uses a self-made certificate, it doesn't work

Terminal output

1: Error while getting content: Reqwest(
reqwest::Error {
kind: Request,
url: Url {
scheme: "https",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(
Domain(
"xxx",
),
),
port: Some(
8920,
),
path: "/Sessions",
query: Some(
"api_key=xxx",
),
fragment: None,
},
source: hyper::Error(
Connect,
Custom {
kind: Other,
error: Custom {
kind: InvalidData,
error: InvalidCertificate(
UnknownIssuer,
),
},
},
),
},
"Is your Jellyfin URL set correctly?",
)

Jellyfin-RPC version

0.15.4

What OS are you using?

Windows 11

What version is the Jellyfin server on?

10.8.11

Anything else?

No response

RPC wont connect when running as a systemd service

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

wrote a custom systemd service to run on startup, and jellyfin-rpc cannot connect to the discord rpc socket.

Terminal output

shows that it is working, just cant connect obviously.
image

runs fine as a normal binary from terminal
image

Jellyfin-RPC version

0.14.6

What OS are you using?

NixOS 23.11

What version is the Jellyfin server on?

10.8.10

Anything else?

works fine when i run from terminal, but the unit never seems to connect to discord when running under systemd. below is the actual code for the systemd unit. i've already tried switching from root to my user, but no luck it seems. i'm gonna assume that this is a nix based issue, but want to see if theres anything that can be done about it on this end. any ideas?

_: {
  systemd.services.jellyfin-rpc = {
    enable = true;
    wantedBy = [
      "multi-user.target"
    ];
    description = "Displays the content you're currently watching on Discord!";

    serviceConfig = {
      User = "root";
      ExecStart = "/nix/store/gfwcai4i1cl3w8lbli4dsg0z369z2fn4-user-environment/bin/jellyfin-rpc --config /home/notoh/.config/jellyfin-rpc/main.json";
      Restart = "always";
      RestartSec = 30;
    };
  };
}```

Integration with multiple users / app auth

So i dont entirely understand discord rpc, but would it not be possible to allow users to integrate this like so:
image

Then it could be used with multiple users and without the need for any single user to be logged into discord on the server for this to work?

I understand this probably isnt easy to achieve or might not even be possible but would be super cool

Make a proper tutorial to understand how to install it

Is your feature request related to a problem? Please describe.
For a beginner like me, I can't understand on how to install the client, the doc is incomprehensible.
Could you be please making a good tutorial like a video or just a doc with everything describe in it?

RPC not showing up on Discord

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

My plan is to have the rpc running 24/7 on my Debian 12 machine. I installed the program via the python installer and it installed fine. I also activated autostart. Now the problem is (It might sounds dumb): I dont really know how to acces for example the terminal or even see if it's running. I know where the configuration file is but nothing more than that. Do I have to install something else?

Edit: On Windows it works just fine with the same configuration file.

Thanks for your help!

Terminal output

/

Jellyfin-RPC version

0.15.1

What OS are you using?

Debian 12

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Windows defender

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

Whenever i install it the window defender blocks/deletes the file, i made an exception but idk whats the real issue about it

Terminal output

No response

Jellyfin-RPC version

0.14.0

What OS are you using?

W11

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

emby?

Hi, does this project support emby? was just curious as I entered my emby server url but did not work first try, however was working with jellyfin of course, thanks for your work on the project!

Multi user/web casting support

Is your feature request related to a problem? Please describe.
I got Jellyfin connected to a custom Interface on my projector that I can connect to using the cast feature. On the backend, it's a separate user logged in that I cast to. jellyfin-rpc however detects a user casting to another user as the second user playing it.

Describe the solution you'd like
I'd like for either the config the be able to take multiple usernames for tracking or for jellyfin-rpc to understand when a user is casting to another as the first user playing it.

Describe alternatives you've considered
I've considered automatically updating the config based on what I'm doing with a tiny script, but that might be a bit overkill.

Additional context
Probably not really important for this, but the UI is an Electron app displaying Jellyfin with a lot of custom JS/CSS.

RPC not connecting to jellyfin website

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

I am using local DNS for Jellyfin and I can visit the site in the browser but with RPC it doesn't work

Terminal output

thread 'main' panicked at 'Can't unwrap URL, check if JELLYFIN_URL is correct. Current URL: https://jellyfin.refly.duckdns.org/', src\services\jellyfin.rs:90:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Jellyfin-RPC version

0.14.6

What OS are you using?

Windows 11 Education

What version is the Jellyfin server on?

10.8.10

Anything else?

image

image

Keeps disconnecting from from Discord and struggling/not reconnecting

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

I'm using jellyfin-rpc via a launchctl service. It starts up and works well for a maybe 30 seconds, and then just randomly disconnects. It struggles with reconnecting, often it just doesn't for a long time.

Terminal output

stdout:


Notice Me
By SZA
Attempt 1: Trying to reconnect
Reconnected to Discord Rich Presence Socket
------------------------------------------------------------------

Gone Girl
By SZA
Attempt 1: Trying to reconnect
Reconnected to Discord Rich Presence Socket
------------------------------------------------------------------

Gone Girl
By SZA
Attempt 1: Trying to reconnect
Reconnected to Discord Rich Presence Socket
------------------------------------------------------------------

Gone Girl
By SZA
Attempt 1: Trying to reconnect
Reconnected to Discord Rich Presence Socket
------------------------------------------------------------------

Gone Girl
By SZA
Attempt 1: Trying to reconnect
Reconnected to Discord Rich Presence Socket
------------------------------------------------------------------

Gone Girl
By SZA
Attempt 1: Trying to reconnect
Reconnected to Discord Rich Presence Socket
------------------------------------------------------------------

Gone Girl
By SZA
Attempt 1: Trying to reconnect
Reconnected to Discord Rich Presence Socket
------------------------------------------------------------------

Gone Girl
By SZA
Attempt 1: Trying to reconnect

stderr (this may just be from when I relaunch Discord):

Failed to reconnect, retrying soon
Failed to reconnect, retrying soon
Failed to reconnect, retrying soon

Jellyfin-RPC version

0.14.5

What OS are you using?

macOS

What version is the Jellyfin server on?

10.8.10

Anything else?

Restarting jellyfin-rpc, I don't see it connect back to Discord immediately. If I restart Discord though, jellyfin-rpc connects again fine and works for a little bit.

SSL issue?

Describe the bug
Errors when starting, doesn't connect to Discord basically.

To Reproduce
./jellyfin-rpc-x86_64-linux

Expected behavior
it runs?

Screenshots
LOG:

Error: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(127.0.0.1)), port: Some(8096), path: "/Sessions", query: Some("api_key=543b71cfe4db45058ffd6c810a0264b1"), fragment: None }, source: hyper::Error(Connect, Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 167772427, library: "SSL routines", function: "ssl3_get_record", reason: "wrong version number", file: "ssl/record/ssl3_record.c", line: 354 }]))) }, X509VerifyResult { code: 0, error: "ok" })) }

Information:

  • OS: [e.g. Gentoo Linux]
  • Jellyfin Server Version: [e.g.10.8.10]
  • Jellyfin-RPC Version: [e.g. 0.13.2 attempt 2]

Additional context
I had some problems with OpenSSL on my system, that might be it.

Discord status option

Is there an existing issue for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe

Currently

  • Discord only shows "Playing YourAppName"
  • When clicking on your profile it will show:
    image

Describe the solution you'd like

Feature Idea

  • It would be cool to have an option in the config where we can choose between "Playing" and "Listening to"
  • Also when Discord shows the status "Listening to", it will look like this when you inspect the profile:
    image
  • This is cleaner when you actually listen to music, hence this request :D.

Describe alternatives you've considered

No response

Additional context

No response

Panic when no imgur image found

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

When no imgur image is found, jellyfin-rpc panics rather than showing no image

Terminal output

thread 'main' panicked at 'imgur returned no image url!', src/services/imgur.rs:118:14

Jellyfin-RPC version

0.14.3

What OS are you using?

Arch

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Long album title with CJK characters crashes program

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

When playing a song with a long, bilingual album title with a CJK character at the new cutoff, the jellyfin-rpc process shuts down. I have tried running the executable directly from the desktop and from the command line and gotten the same result.

Terminal output

thread 'main' panicked at 'byte index 128 is not a char boundary; it is inside 'ス' (bytes 126..129) of `By Nintendo - The Legend of Zelda: Twilight Princess HD Original Soundtrack (ゼルダの伝説 トワイライトプリンセス HD オリジナルサウンド
トラック) - 2016`', src\services\jellyfin.rs:130:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Jellyfin-RPC version

0.14.5

What OS are you using?

Windows 11 (22H2)

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Audiobook Presence

Discussed in #34

Originally posted by 0xGingi July 13, 2023
Would it be possible to display the presence of audiobooks for libraries using the Books Library type?

Error: Couldn't connect to the Discord IPC socket

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

No matter what, Jellyfin-RPC will not connect to the Discord IPC socket.

Terminal output

Nov 11 22:11:18 lance-laptop jellyfin-rpc[213818]: Jellyfin-RPC
Nov 11 22:11:18 lance-laptop jellyfin-rpc[213818]: ------------------------------------------------------------------
Nov 11 22:11:18 lance-laptop jellyfin-rpc[213818]: Attempt 1: Trying to connect
Nov 11 22:11:18 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:11:18 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:11:19 lance-laptop jellyfin-rpc[213818]: Attempt 2: Trying to connect
Nov 11 22:11:19 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:11:19 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:11:21 lance-laptop jellyfin-rpc[213818]: Attempt 3: Trying to connect
Nov 11 22:11:21 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:11:21 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:11:25 lance-laptop jellyfin-rpc[213818]: Attempt 4: Trying to connect
Nov 11 22:11:25 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:11:25 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:11:33 lance-laptop jellyfin-rpc[213818]: Attempt 5: Trying to connect
Nov 11 22:11:33 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:11:33 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:11:49 lance-laptop jellyfin-rpc[213818]: Attempt 6: Trying to connect
Nov 11 22:11:49 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:11:49 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:12:21 lance-laptop jellyfin-rpc[213818]: Attempt 7: Trying to connect
Nov 11 22:12:21 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:12:21 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:13:25 lance-laptop jellyfin-rpc[213818]: Attempt 8: Trying to connect
Nov 11 22:13:25 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:13:25 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:15:33 lance-laptop jellyfin-rpc[213818]: Attempt 9: Trying to connect
Nov 11 22:15:33 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:15:33 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:19:49 lance-laptop jellyfin-rpc[213818]: Attempt 10: Trying to connect
Nov 11 22:19:49 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:19:49 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket
Nov 11 22:28:21 lance-laptop jellyfin-rpc[213818]: Attempt 11: Trying to connect
Nov 11 22:28:21 lance-laptop jellyfin-rpc[213818]: Failed to connect, retrying soon
Nov 11 22:28:21 lance-laptop jellyfin-rpc[213818]: Error: Couldn't connect to the Discord IPC socket

Jellyfin-RPC version

0.15.3

What OS are you using?

Ubuntu 22.04.3 LTS

What version is the Jellyfin server on?

10.8.12

Anything else?

Had a few issues with systemd before this that involved me needing to use machinectl to log in, but resolved those. This issue occurs after that, while running the jellyfin-rpc binary manually, and even after I've disabled UFW fully.
The Jellyfin server and RPC client are on the same machine.

Intermittent disconnecting from Discord RPC causes jellyfin-rpc to seemingly flicker

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

I'm not sure what conditions cause this bug to occur, but the Jellyfin rich presence comes and goes from my profile, almost as if it's flickering.

Sometimes, it stops working entirely until I restart my PC.

Terminal output

アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop
------------------------------------------------------------------
Cleared Rich Presence
------------------------------------------------------------------
アンダーヒロイン
By ツユ - J-Pop

Jellyfin-RPC version

0.14.1

What OS are you using?

Windows 11 22H2

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Ability to toggle media types

Is your feature request related to a problem? Please describe.
I would like for people to see only the music im playing.
Describe the solution you'd like
The ability to toggle on or off certain media types (or librairies but that would be a best case scenario)

Link AUR packages in README

I just submitted a PKGBUILD for your package to the AUR so that users on Arch Linux can easily install it on their system: https://aur.archlinux.org/packages/jellyfin-rpc

Coincidentally, another user submitted the git distribution (which always builds the latest master) just a few hours earlier, which you can find here: https://aur.archlinux.org/packages/jellyfin-rpc-git.

Both of these packages can be linked so that users could choose between stable releases and the latest and greatest (and perhaps less stable).
Thanks!

Time remaining should not show when media is paused

Is your feature request related to a problem? Please describe.
Basically I think it looks weird when the "xx:xx left" keeps resetting every time the presence is set (every couple of seconds).

Describe the solution you'd like
In its place, a small icon for it would be nice. Could also have "Paused" but I don't think Discord gives room for that.

Describe alternatives you've considered
Dealing with it (but I don't want to)

Additional context
Another thing on the topic of timestamps since I don't feel like making another issue: how about setting start time as well? discord_rich_presence has a function for it that can be combined with the end you already use - and you can likely gather start times from Jellyfin's ActivityLog API.

openssl TLS issue on Alpine

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

segmentation fault after ./jellyfin-rpc

dmesg shows: [364123.544742] jellyfin-rpc[12861]: segfault at 0 ip 0000000000000000 sp 00007fffdff8ccc8 error 14 [364123.544750] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.

not sure if this is on my end, i'm pretty clueless

Jellyfin-RPC version

0.14.0

What OS are you using?

Alpine 13.7.4

Only displays album artist and not song artist(s)

Discussed in #73

Originally posted by SightSpirit October 6, 2023
I listen to a lot of compilation albums, so jellyfin-rpc's use of the album artist in the by-line is often not representative of what I'm listening to. Is there any way to set the program to pull from the artist field instead? If not, would it be difficult to implement?

Thanks!

Imgur InvalidResponse

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

I was using Jellyfin-RPC fine and then all of a sudden the images stopped working so I assume this has something to do with Imgur and not Jellyfin-RPC but I thought I would open an issue just in case since they may be changing their API.

image

Terminal output

No response

Jellyfin-RPC version

0.15.5

What OS are you using?

Windows

What version is the Jellyfin server on?

10.8.13

Anything else?

No response

128 character length limit

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

Screenshot 2023-08-26 001906
Screenshot 2023-08-26 001921
Screenshot 2023-08-26 001956
Screenshot 2023-08-26 002008
Screenshot 2023-08-26 002023

The other album shows fine and the other not.

Terminal output

No response

Jellyfin-RPC version

0.14.4

What OS are you using?

windows

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Images only sometimes work

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

I have my Jellyfin server behind Caddy + my own domain. For some albums (and the couple videos I've checked so far), images display totally fine. Often (usually?) though, the images won't display at all.

Terminal output

No response

Jellyfin-RPC version

0.14.2

What OS are you using?

Windows 10 Pro

What version is the Jellyfin server on?

10.8.10

Anything else?

Here are two different songs on two different albums:

image
image

I have enable_images set to true and imgur_images set to false. Jellyfin-RPC's config connects to my domain rather than over LAN (https:// included). Restarting Jellyfin-RPC does not resolve the issue. In case it's relevant, I use Armcord (which integrates arRPC for rpc support). This has been a problem since at least 1.14.1 (when I started using Jellyfin-RPC). I haven't found anything that might indicate what's causing the problem.

ActivityType as "Watching" (Custom RPC Title)

EDIT: Instead of making a whole new issue, I'm editing this post for clarity.

Would be great if the RPC state was "Watching" instead of "Playing".

OLD:

Is your feature request related to a problem? Please describe.
My instance title is customized but I don't want people outside my server members to know what it is.

Describe the solution you'd like
Adding a variable for the RPC title in main.json, which, when left blank defaults to the current behaviour, but when populated overrides the title for the RPC with the populated value.

Additional context
RPC Title = "Playing [RPC Title]"
Also would be good to change the RPC state from "Playing" to "Watching" since that's what you're doing ^^

[WINDOWS] No colors and garbled output

Describe the bug
Garbled output when running the exe file.

To Reproduce
Steps to reproduce the behavior:

  1. Open jellyfin-rpc.exe

Expected behavior
Colored output

Screenshots
image

Information:

  • OS: Windows 10
  • Jellyfin-RPC Version: 0.6.0

Specific song not fetching/displaying correctly on Discord

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

I'm playing the song "U" by DECO*27 from the album MANNEQUIN and the song info simply won't display within Discord even though it's working in the RPC program itself as far as I can tell.

This seems to only affect this song, nothing else on the album has this same issue as far as I've seen thus far.

The screenshot below shows what happens when I switch to it from the previous song while the previous song is still playing; basically, though, info simply isn't updated (the remaining duration from the previous track stays onscreen instead).

image

The following is what is shown when the RPC application is loaded through Terminal, which looks correct to me.
image

Terminal output

No response

Jellyfin-RPC version

0.15.5

What OS are you using?

Windows 10

What version is the Jellyfin server on?

10.8.13

Anything else?

No response

Error when trying to install

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

I installed fresh windows 10 and the latest python version , i restart pc many times but still wont install.

Terminal output

Screenshot 2023-09-18 104024

Jellyfin-RPC version

0.15.0

What OS are you using?

Windows 10

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Cover art without port forwarding

how do i get cover art to show up on jellyfin-rpc without needing to port forward using only one pc that has server and rpc on same pc

[Suggestion] Change the default Playing Jellyfin to Listening to/Watching Jellyfin

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Not a problem, more of a suggestion and enhancement.
Describe the solution you'd like
For the default presence to be changed from Playing to Watching when watching something on jellyfin and Listening to when listening to something on jellyfin.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I haven't thought of any other solutions.

Additional context
Add any other context or screenshots about the feature request here.
image

Jellyfin-RPC crash when playing theme music

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

Jellyfin-rpc crash when theme music is playing in the background. Crash does not happen when Theme Music is disabled in the settings under Display. Dont Crash with Theme Videos.

Terminal output

thread 'main' panicked at 'called Option::unwrap() on a None value'

Jellyfin-RPC version

0.14.0

What OS are you using?

Windows 11

What version is the Jellyfin server on?

10.8.10

Anything else?

No response

Stopped working after a day ("Couldn't connect to the Discord IPC socket" error)

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

Basically I installed jellyfin-rpc on Monday morning, it worked absolutely fine the whole day then starting Tuesday it broke and doesn't show anything since. I tried reinstalling the service, using new bot client id, new api key, rebooting my server and PC but nope, even tried on another PC without success.

Terminal output

Just wondering how to get logs when running as windows service ?

Jellyfin-RPC version

0.15.3

What OS are you using?

Windows 11

What version is the Jellyfin server on?

4.8.0.58 (emby)

Anything else?

No response

Windows Defender (and Google Chrome) falsely detect the program as malware.

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

Windows Defender falsely detects the program as malware containing "Trojan:Win32/Bearfoos.A!ml" and gets rid of the file. Google Chrome also sees the program as something suspicious but after scanning it, it sees no problem and allows it to be saved.

Terminal output

No response

Jellyfin-RPC version

0.14.6

What OS are you using?

Windows 11 Pro (Canary Insider Preview)

What version is the Jellyfin server on?

10.8.10

Anything else?

image
image
image

Support for multi-character separators

Is there an existing issue for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe

The application crashes when trying to use a multi-character string as a separator.

I wanted to use "on" as a separator so it says "By Artist on Album".

Describe the solution you'd like

I don't know Rust very much but I can see from a quick search of the code that the application is using a char for the separator. So maybe just change that? I'm not sure if that's easier said than done but just an observation.

Describe alternatives you've considered

No response

Additional context

No response

[Feature Request] Add button to the jellyfin instance + rename "Jellyfin" to the instance name

Is your feature request related to a problem? Please describe.
Currently, the software only shows the media being played, and it's status.


Describe the solution you'd like
A way to add buttons and renaming "Jellyfin"

I'd love a button that links to my instance, and a way to rename the "Jellyfin" name to my instance name.

I made a horrible picture to better ilustrate what I mean:

pic


BTW love your work ❤️

Ability to configure what music tags to show

Is your feature request related to a problem? Please describe.
Currently it only display title, artist, genre and duration.

Describe the solution you'd like
Ability to display different music tags in the discord such as album and year, maybe make it configurable in the main.json?

Describe alternatives you've considered

Additional context
Love this program, thank you for the hard work!!

RPC keeps resetting

Describe the bug
As shown in the included video, it connects to the API but when I start playing media it shows in the RPC output and clears itself after couple of seconds. It then cycles between playing media and clearing the output. It's also visible on Discord, where it shows what I'm playing and suddenly disappears.

Screenshots
https://user-images.githubusercontent.com/97224849/221376752-86e81d59-c1d8-4f71-96de-35f75f5aeb6d.mp4

Information:

  • Server OS: Raspberry Pi OS
  • OS: Arch Linux
  • Jellyfin Server Version: 10.8.8
  • Jellyfin-RPC Version: 0.7.0
  • Jellyfin client: Jellyfin Media Player 1.8.1

Additional context
Jellyfin-rpc config file without the API key:
jellyfin-rpc.env.txt

Error while getting content: Json( Error("expected value", line: 1, column: 1), ) after install

Is there an existing issue for this?

  • I have searched the existing issues

What went wrong?

After install the program always throws out a "Error while getting content: Json(Error("expected value", line: 1, column: 1),)" no matter what mine json config file stores. I've tried it on Windows but it spits out the same error! I've also tried using the default config but with no results.

Terminal output

jellyfin-rpc[778]: [771B blob data]
gru 10 13:31:46 user1 jellyfin-rpc[778]: 41: Error while getting content: Json(
gru 10 13:31:46 user1 jellyfin-rpc[778]: Error("expected value", line: 1, column: 1),)

Jellyfin-RPC version

0.15.5

What OS are you using?

EndevourOS linux kernel6.6.4

What version is the Jellyfin server on?

10.8.13

Anything else?

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.