Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

air-eat/quodlibet-discordrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a discord rich presence plugin for quod libet

example

this is a version of quod libet's discord rpc plugin that i (heavily) modified to add time left, a slider using a button and album art

i can agree that this is spaghetti code, i am not a great programmer

disclaimers:

as far as i know, this plugin only works on linux (as the original plugin purposefully throws an error if it detects macos/windows), though i haven't tested it on windows as i am too lazy

i also haven't tested it well enough and it could crash; i know nobody will use this but if it does let me know by submitting an issue

faq:

why does my player freeze whenever i choose a song?

this is due to the player waiting for the album art to be uploaded to litterbox.catbox.moe; this should only be for a second but it is still noticable

note that there is a timeout after 10 seconds

can you change the "Playing" to "Listening to"?

this is a limitation of discord's rich presence; afaik there is nothing i can do about it

how can i use my own play/pause icon?

paste the image links into the play/pause image fields in the plugin's preferences

if you have them on your computer, upload your icons online first (using services like imgur or catbox.moe)

installation:

1. install the plugin

install pypresence (used for rich presence), pillow (used to scale down album art images) and requests (used to send images to litterbox.catbox.moe) (in this case using pip):

pip install pypresence
pip install requests
pip install pillow

create a plugins folder if one doesn't exist and create an events folder inside it:

mkdir ~/.config/quodlibet/plugins
mkdir ~/.config/quodlibet/plugins/events

after this, cd into it and download discordrp.py (in this case using wget):

cd ~/.config/quodlibet/plugins/events
wget https://raw.githubusercontent.com/air-eat/quodlibet-discordrpc/main/discordrp.py

restart or open quod libet, go to file > plugins and it should show up!
now you can enable it - and hope it doesn't crash - and go to step 2 below

2. creating an app for rich presence:

go to the discord developer webportal and create a new application:

press this button!

type in whatever name you want to display in discord (preferably quod libet), agree to the tos and press create:

like this

copy the "application id" from your newly created app:

this one!!!

go to file > plugins, click on the plugin and paste it into the "app id" field:

who will actually see these tooltips

and you should be done!

todo:

  • actually update this
  • find way to not freeze the player while uploading album art
  • clear everything when nothing is playing

kitty!!!!!!

About

rich presence for quod libet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages