Sign inSign up

simoneklundh/media-rpc

By simoneklundh

•Updated 22 days ago

A docker container for https://github.com/MakD/media-rpc

Image
0

2.9K

simoneklundh/media-rpc repository overview

⁠Discord Media RPC

Show what you're watching on Jellyfin or listening to on Audiobookshelf as Discord Rich Presence — with cover art, timestamps, and chapter tracking.

Runs as the gateway variant: connects via the Discord gateway as a user account, so it can run on a server or NAS without Discord installed locally.

⁠Quick Start

⁠Docker compose

services:
  media-rpc:
    image: simoneklundh/media-rpc
    container_name: media-rpc
    restart: unless-stopped
    environment:
      - DISCORD_CLIENT_ID=idhere
      - DISCORD_TOKEN=tokenhere
      - JELLYFIN_SERVER=https://jellyfin.domain.tld/Sessions
      - JELLYFIN_API_KEY=apikeyhere
      - JELLYFIN_USER_ID=useridhere
      - TMDB_API_KEY=api_key_here
      - ABS_SERVER=https://books.domain.tld
      - ABS_API_TOKEN=apitokenhere
      - USE_CHAPTER_TITLE=true
      - DEFAULT_JELLYFIN_SERVER_NAME= Custom Server Name
      - DEFAULT_AUDIOBOOKSHELF_SERVER_NAME= Custom Server Name
      - JELLYFIN_IGNORE_LIBRARIES=Library1,Library2,Library3

How to get the variables⁠

How To Get Audiobookshelf Images In Discord⁠

⁠.env Config

  1. Create a .env file with the following variables:
⁠Discord
⁠your personal login token

DISCORD_TOKEN=your_discord_user_token

⁠from discord dev applications portal

DISCORD_CLIENT_ID=your_discord_application_id

⁠Jellyfin

JELLYFIN_SERVER=https://jellyfin.example.com/Sessions⁠ JELLYFIN_API_KEY=your_jellyfin_api_key JELLYFIN_USER_ID=your_jellyfin_user_id TMDB_API_KEY=your_tmdb_api_key DEFAULT_JELLYFIN_SERVER_NAME= Custom Server Name JELLYFIN_IGNORE_LIBRARIES=Library1,Library2,Library3

⁠Audiobookshelf

ABS_SERVER=https://abs.example.com⁠ ABS_API_TOKEN=your_abs_api_token DEFAULT_AUDIOBOOKSHELF_SERVER_NAME= Custom Server Name

⁠run

  1. Run the container:

docker run -d
--name media-rpc
--env-file .env
--restart unless-stopped
simoneklundh/media-rpc

Features Jellyfin movies & TV shows with cover art (TMDB fallback)

Audiobookshelf audiobooks & podcasts with chapter tracking

Elapsed and remaining time timestamps

Library blacklist to hide specific Jellyfin libraries

Auto-reconnect on dropped connection

Local cover cache to avoid redundant requests Links

GitHub — source, setup guides, and cover art proxy configuration

Tag summary

Content type

Image

Digest

sha256:9568434cf…

Size

46.7 MB

Last updated

6 months ago

docker pull simoneklundh/media-rpc