radiicall / jellyfin-rpc Goto Github PK
View Code? Open in Web Editor NEWDisplays the content you're currently watching on Discord!
License: GNU General Public License v3.0
Displays the content you're currently watching on Discord!
License: GNU General Public License v3.0
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!
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
0.14.0
Alpine 13.7.4
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!
When no imgur image is found, jellyfin-rpc panics rather than showing no image
thread 'main' panicked at 'imgur returned no image url!', src/services/imgur.rs:118:14
0.14.3
Arch
10.8.10
No response
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.
No response
0.15.5
Windows
10.8.13
No response
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
0.14.4
Windows 11
10.8.10
No response
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.
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
0.14.5
Windows 11 (22H2)
10.8.10
No response
So i dont entirely understand discord rpc, but would it not be possible to allow users to integrate this like so:
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
wrote a custom systemd service to run on startup, and jellyfin-rpc cannot connect to the discord rpc socket.
shows that it is working, just cant connect obviously.
runs fine as a normal binary from terminal
0.14.6
NixOS 23.11
10.8.10
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;
};
};
}```
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:
Additional context
Jellyfin-rpc config file without the API key:
jellyfin-rpc.env.txt
how do i get this to run without a cmd window popping up on windows?
Tried launching jellyfin-rpc.exe, and it launched a blank CMD window which automatically closes a few milliseconds later. No logs or errors printed.
No output - cmd window closes right after opening launching it.
0.14.1
Windows 10 Pro
10.8.9
No response
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.
No response
0.14.6
Windows 11 Pro (Canary Insider Preview)
10.8.10
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.
thread 'main' panicked at 'called Option::unwrap()
on a None
value'
0.14.0
Windows 11
10.8.10
No response
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.
Just wondering how to get logs when running as windows service ?
0.15.3
Windows 11
4.8.0.58 (emby)
No response
Describe the bug
The rich presence doesn't have any separation between the artist and genre.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There is a space followed by a dash between the artist and genre to clearly separate the two.
Information:
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?
Jellyfin-RPC randomly clears the Rich Presence while the movie is still running.
Screenshots
https://i.imgur.com/v2xRen4.png
Information:
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.
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),)
0.15.5
EndevourOS linux kernel6.6.4
10.8.13
No response
Originally posted by 0xGingi July 13, 2023
Would it be possible to display the presence of audiobooks for libraries using the Books Library type?
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)
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:
BTW love your work ❤️
I installed fresh windows 10 and the latest python version , i restart pc many times but still wont install.
0.15.0
Windows 10
10.8.10
No response
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 ^^
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.
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!!
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".
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.
No response
No response
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.
No response
0.14.2
Windows 10 Pro
10.8.10
Here are two different songs on two different albums:
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.
When setting up jellyfin-rpc with a HTTPS URL that uses a self-made certificate, it doesn't work
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?",
)
0.15.4
Windows 11
10.8.11
No response
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.
Whenever i install it the window defender blocks/deletes the file, i made an exception but idk whats the real issue about it
No response
0.14.0
W11
10.8.10
No response
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).
The following is what is shown when the RPC application is loaded through Terminal, which looks correct to me.
No response
0.15.5
Windows 10
10.8.13
No response
Describe the bug
Errors when starting, doesn't connect to Discord basically.
To Reproduce
./jellyfin-rpc-x86_64-linux
Expected behavior
it runs?
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:
Additional context
I had some problems with OpenSSL on my system, that might be it.
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!
I am using local DNS for Jellyfin and I can visit the site in the browser but with RPC it doesn't work
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
0.14.6
Windows 11 Education
10.8.10
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.
Loading music within jellyfin crashes jellyfin-rpc on linux. Works as expected for videos.
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
0.14.1
Linux Mint 21.2 Cinnamon
10.8.10
No response
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!
/
0.15.1
Debian 12
10.8.10
No response
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.
アンダーヒロイン
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
0.14.1
Windows 11 22H2
10.8.10
No response
No response
No response
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
No matter what, Jellyfin-RPC will not connect to the Discord IPC socket.
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
0.15.3
Ubuntu 22.04.3 LTS
10.8.12
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.
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.
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
0.14.5
macOS
10.8.10
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.
"jellyfin-rpc.exe" is flagged as a virus.
VirusTotal link :
https://www.virustotal.com/gui/file/b33449a425d6d020813d9bb5700f0c888327ee1efa5edfa98c756a25b76af8e8/detection
No response
0.14.0
Windows 11
10.8.12
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.