sandwichfox / mbcord Goto Github PK
View Code? Open in Web Editor NEWAn Emby/Jellyfin rich presence client for Discord ✨
Home Page: https://mbcord.sandwichfox.de
License: MIT License
An Emby/Jellyfin rich presence client for Discord ✨
Home Page: https://mbcord.sandwichfox.de
License: MIT License
image not loading, nor does it changed to paused when media is paused.
here is debug log
https://gist.github.com/reitenth/f4453a40cbeeee8f383cee91a2477255
Describe the bug
[bittersweet@candyshop ~]$ mbcord --trace-warnings
(mbcord:761878): Gtk-WARNING **: 18:22:24.079: Unknown key GTK_THEME in /home/bittersweet/.config/gtk-3.0/settings.ini
(node:761878) UnhandledPromiseRejectionWarning: Error: Cannot create an item in a locked collection
(Use `mbcord --trace-warnings ...` to show where the warning was created)
(node:761878) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[761878:1118/182225.152886:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
MBCord: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory
Expected behavior
A window to open or normal startup
Desktop (please complete the following information):
Extra Info
I seem to be missing a shared lib, but I couldn't find any missing :/
Theming issue is irrelevant, gtk ignores invalid and haven't had an issue with my lazi/bad theme file before. :3
Describe the feature/change you'd like
im 99% sure discord has added the ability to dynamically change rich presence images, i havent used the feature myself yet but ive seen apps like premid do it, for example with apple music. i noticed on the faq it says its not possible so please correct me if im wrong
Additional context
when trying to run MBCord, no windows appear, and it will immediately exit with no visible errors
here is the log file
it gives the same result when using the appimage, AUR package, and building from source
[Thu Jan 12 2023 12:22:38 GMT-0500 (Eastern Standard Time)] info: DEBUG INFO:
Development Mode: false
Platform: linux (Version 6.1.4-arch1-1)
Architecture: x64
MBCord version: 3.0.6
Node version: 16.17.1
Electron version: 22.0.0
Chrome version: 108.0.5359
Describe the bug
After a while using MCBord alongside with Discord and Jellyfin it starts entering in an error loop. I think the information displaying still works in Discord but you can't click the message away, it will appear continously, you need to exit MBCord to stop that.
Expected behavior
No error loop.
Error
`[Sat Nov 11 2023 12:23:13 GMT+0100 (Central European Standard Time)] info: Starting app...
[Sat Nov 11 2023 12:23:13 GMT+0100 (Central European Standard Time)] info: DEBUG INFO:
Development Mode: false
Platform: win32 (Version 10.0.22621)
Architecture: x64
MBCord version: 3.0.7
Node version: 18.12.1
Electron version: 23.1.3
Chrome version: 110.0.5481
[Sat Nov 11 2023 12:23:13 GMT+0100 (Central European Standard Time)] info: Connected to Discord (Server type: jellyfin)
[Sat Nov 11 2023 12:26:36 GMT+0100 (Central European Standard Time)] error: Unhandled Rejection: Error: Unknown Error
at RPCClient.onRpcMessage (C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:178:19)
at IPCTransport.emit (node:events:513:28)
at C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:138:18
at decode (C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:92:5)
at Socket. (C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:120:7)
at Socket.emit (node:events:513:28)
at emitReadable (node:internal/streams/readable:590:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
[Sat Nov 11 2023 12:26:36 GMT+0100 (Central European Standard Time)] error: Unknown Error
[Sat Nov 11 2023 12:26:40 GMT+0100 (Central European Standard Time)] error: Unhandled Rejection: Error: Unknown Error
at RPCClient.onRpcMessage (C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:178:19)
at IPCTransport.emit (node:events:513:28)
at C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:138:18
at decode (C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:92:5)
at Socket. (C:\Users\rebor\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:120:7)
at Socket.emit (node:events:513:28)
at emitReadable (node:internal/streams/readable:590:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
[Sat Nov 11 2023 12:26:40 GMT+0100 (Central European Standard Time)] error: Unknown Error`
Desktop
Additional context
I'm currently watching with Chrome Canary latest Version because the JMP really sucks currently (no front). But I will check out if the same will happen with using it.
on windows startup, it only displays if i restart the app first. i saw this #20 and i tried setting it to start a min after startup in task scheduler but that does not seem to have worked.
i either get "Failed to get sessions: Error: connect ECONNREFUSED 192.168.1.136:8096" or "Failed to get sessions: Error: connect ETIMEDOUT 192.168.1.136:8096"
Create a plugin for betterdiscord so its fully integrated and doesn't have to run anything
can i run this in docker? if so are there any instructions? thanks.
I don't know if it's possible but i think that it would be very cool to make like a pull request on the jellyfin media player to integrate your program to it
The following unhandled promise rejection message appears a few times in a row each time the track changes:
Error: Unknown Error
at RPCClient._onRpcMessage (/opt/appimages/mbcord/resources/app.asar/node_modules/discord-rpc/src/client.js:178:19)
at IPCTransport.emit (node:events:513:28)
at /opt/appimages/mbcord/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:138:18
at decode (/opt/appimages/mbcord/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:92:5)
at Socket.<anonymous> (/opt/appimages/mbcord/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:120:7)
at Socket.emit (node:events:513:28)
at emitReadable_ (node:internal/streams/readable:578:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
I'm playing a music album with custom primary art, replacing the auto-generated image Jellyfin provides. I have noticed the cover art is also appearing as a broken image graphic but that occurs even on other albums without manually added art (and without the above error), so might not be related to the issue.
DEBUG INFO:
Development Mode: false
Platform: linux (Version 6.1.2-arch1-1)
Architecture: x64
MBCord version: 3.0.6
Node version: 16.17.1
Electron version: 22.0.0
Chrome version: 108.0.5359
I changed the paths in the error message just so it wouldn't show my C drive and such, but the rest of the message is unaltered. To replicate, have MBCord and Discord running, and close discord. You get this error message over and over and the only way to stop it is to end the MBCord task in the Task Manager.
Error: connection closed
at ...\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:108:20
at Map.forEach (<anonymous>)
at IPCTransport.<anonymous> (...\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:107:25)
at Object.onceWrapper (node:events:628:26)
at IPCTransport.emit (node:events:525:35)
at IPCTransport.onClose (...\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:151:10)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14)
DEBUG INFO:
Development Mode: false
Platform: win32 (Version 10.0.22621)
Architecture: x64
MBCord version: 3.0.6
Node version: 16.17.1
Electron version: 22.0.0
Chrome version: 108.0.5359
Describe the bug
Watching a movie/series on Emby Theater results in the primary not image not loading
Expected behavior
A Emby Theater icon would show
Error
None:
[Fri Dec 30 2022 13:45:38 GMT+0100 (Central European Standard Time)] info: Starting app...
[Fri Dec 30 2022 13:45:38 GMT+0100 (Central European Standard Time)] info: DEBUG INFO:
Development Mode: false
Platform: win32 (Version 10.0.22621)
Architecture: x64
MBCord version: 3.0.6
Node version: 16.17.1
Electron version: 22.0.0
Chrome version: 108.0.5359
[Fri Dec 30 2022 13:46:02 GMT+0100 (Central European Standard Time)] info: Connected to Discord (Server type: emby)
Desktop (please complete the following information):
Additional context
None
Describe the bug
Die Bilder von Serien oder Filme werden nicht auf Discord angezeigt.
Hab bei drei verschiedenen Serien/Filme nachgeschaut und da sieht man nichts, auf den Screenshots sieht man dies auch.
Error
[Mon Dec 19 2022 10:03:46 GMT+0100 (Mitteleuropäische Normalzeit)] info: Starting app...
[Mon Dec 19 2022 10:03:46 GMT+0100 (Mitteleuropäische Normalzeit)] info: DEBUG INFO:
Development Mode: false
Platform: win32 (Version 10.0.19044)
Architecture: x64
MBCord version: 3.0.6
Node version: 16.17.1
Electron version: 22.0.0
Chrome version: 108.0.5359
[Mon Dec 19 2022 10:03:46 GMT+0100 (Mitteleuropäische Normalzeit)] info: Connected to Discord (Server type: jellyfin)
Desktop (please complete the following information):
Describe the feature/change you'd like
Instead of throwing an error if the title is too long, make it cut down or just don't add an Title.
Additional context
This happened because the title is in German and its too long.
Example:
Classroom of the Elite - S1:E6 - Es gibt zwei Arten von Lügen: Eine, welche Tatsachen betrifft und damit in die Vergangenheit zurückweist, und eine andere, bei welcher es sich um Versprechungen für die Zukunft handelt.
That's to long and it will throw an error, which won't display the Discord Presence.
Excuse me for my lack of english
The Update Manager doesnt work rightnow until the next release it would be fixed
Tasks:
Describe the feature/change you'd like
Damit immer ein bild angezeigt wird und nicht von nutzern die IP öffentlicher gemacht wird.
Nutz einfach von IMDB das:
https://v2.sg.media-imdb.com/suggestion/s/lucifer.json
bei "lucifer" gibst du einfach die Serien/Film Namen ein und bekommt ein imageurl.
Am besten nimmst du den ersten eintrag.
und weil es json ist sollte es leicht sein es zubekommen. (Also zumindest bei Python, Bin Python Dev ;) )
Error: Unknown Error
at RPCClient._onRpcMessage (C:\Users\wooksi\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:178:19)
at IPCTransport.emit (node:events:513:28)
at C:\Users\wooksi\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:138:18
at decode (C:\Users\wooksi\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:92:5)
at Socket.<anonymous> (C:\Users\wooksi\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:120:7)
at Socket.emit (node:events:513:28)
at emitReadable_ (node:internal/streams/readable:590:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
DEBUG INFO:
Development Mode: false
Platform: win32 (Version 10.0.19045)
Architecture: x64
MBCord version: 3.0.7
Node version: 18.12.1
Electron version: 23.1.3
Chrome version: 110.0.5481
Error: connection closed
at C:\Users\bvoo\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:108:20
at Map.forEach (<anonymous>)
at IPCTransport.<anonymous> (C:\Users\bvoo\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:107:25)
at Object.onceWrapper (node:events:642:26)
at IPCTransport.emit (node:events:539:35)
at IPCTransport.onClose (C:\Users\bvoo\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:151:10)
at Socket.emit (node:events:527:28)
at Pipe.<anonymous> (node:net:709:12)
DEBUG INFO:
Development Mode: false
Platform: win32 (Version 10.0.22621)
Architecture: x64
MBCord version: 3.0.5
Node version: 16.16.0
Electron version: 21.2.2
Chrome version: 106.0.5249
TypeError: Cannot read properties of null (reading 'write')
at IPCTransport.send (C:\Users\Luke\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\transports\ipc.js:155:17)
at C:\Users\Luke\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:159:22
at new Promise (<anonymous>)
at RPCClient.request (C:\Users\Luke\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:157:12)
at RPCClient.clearActivity (C:\Users\Luke\AppData\Local\Programs\mbcord\resources\app.asar\node_modules\discord-rpc\src\client.js:540:17)
at toggleDisplay (C:\Users\Luke\AppData\Local\Programs\mbcord\resources\app.asar\main.js:211:36)
at click (C:\Users\Luke\AppData\Local\Programs\mbcord\resources\app.asar\main.js:345:18)
at MenuItem.click (node:electron/js2c/browser_init:2:30166)
at a._executeCommand (node:electron/js2c/browser_init:2:35562)
DEBUG INFO:
Development Mode: false
Platform: win32 (Version 10.0.22621)
Architecture: x64
MBCord version: 3.0.6
Node version: 16.17.1
Electron version: 22.0.0
Chrome version: 108.0.5359
Update 3.0.6 added Dynamic Artwork Support for Jellyfin. Until the next Update I will try to replicate that for Emby
For Transparency I will update the progress on this Issue:
Describe the bug
When closing discord, MBCord enters an infinite error loop.
Expected behavior
No error from mbcord when closing discord.
Desktop
Additional context
Also, sometimes mbcord doesn't send a new rich status to discord, and you have to remove and add the server to fix it.
Describe the bug
Yesterday I installed MBCord and it worked fine. Thanks for continuing to work on it as there isn't really any good alternative.
Today after I rebooted my PC MBCord won't open anymore. I have placed a GIF below to demonstrate.
https://i.imgur.com/9hP31d5.gif
I see that its running in Task Manager though, although I get no GUI and the Discord Rich Presence doesn't change after I play something.
Running as Administrator does the same thing.
Expected behavior
I expect the program to open and to start monitoring.
Screenshots
I added the screenshot above.
Error
Desktop (please complete the following information):
EDIT: I removed this folder \AppData\Roaming\mbcord
and it starts again and I have to set up my server again. I wonder if it will stop working again after a reboot though.
They pop up over top of all windows <3
Error: Unknown Error
at RPCClient._onRpcMessage (/tmp/.mount_mbcordKreYOr/resources/app.asar/node_modules/discord-rpc/src/client.js:178:19)
at IPCTransport.emit (node:events:513:28)
at /tmp/.mount_mbcordKreYOr/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:138:18
at decode (/tmp/.mount_mbcordKreYOr/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:92:5)
at Socket.<anonymous> (/tmp/.mount_mbcordKreYOr/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:120:7)
at Socket.emit (node:events:513:28)
at emitReadable_ (node:internal/streams/readable:578:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
DEBUG INFO:
Development Mode: false
Platform: linux (Version 5.15.0-58-generic)
Architecture: x64
MBCord version: 3.0.6
Node version: 16.17.1
Electron version: 22.0.0
Chrome version: 108.0.5359
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.