#MusicTitleRPC

1 messages · Page 1 of 1 (latest)

blazing basin
#

https://github.com/Blackilykat/musicTitleRPC

Changes the name of music rich presences to inherit the currently playing song's title.

Due to discord limitations, spotify activities will lose spotify-exclusive features like the time bar and listen along with this plugin enabled

gray bramble
#

For those of you who find that this plugin doesn't work, make sure that the setting at Settings > Activity Privacy > Share your detected activities with others is enabled. Otherwise nothing will show.

blazing basin
gray bramble
#

yea it took me a while to figure that out.

also is there a way we could replace some of the details with some of our choosing like the duration if the song.

#

in my case the line on I Remember for my current song

#

id rather that be {currentPosition}:{songLength}

blazing basin
#

the duration is not currently possible with spotify, though on mobile clients I think it should show mm:ss left

gray bramble
#

i thought spotify had some sort of local api you could use

blazing basin
#

just had a look in the code, duration seems to be possible but I don't know how I would have that in settings

gray bramble
#

toggle, display duration instead of album name

#

especially with hovering over the album art showing the album name as well

#

i would send screenshots but I cant :/

blazing basin
gray bramble
#

oh

warm coral
#

🔥

blazing basin
#

I'll try to make some more configuration possible for spotify like changing what each part of the activity shows and how to format it

gray bramble
#

that would be fantastic cant wait

#

ping me once thats done please

#

gonna pull that instantly

frail mauve
#

This should be inside vencord, built-in fr fr

proud pilot
#

I didn't know you could do custom activity names without oauth API access, this is really sick

frail mauve
deep trout
#

thats why i had this

proud pilot
deep trout
#

fair

#

i dont think it was there until some later commit

surreal crag
toxic eagleBOT
#

Alright @surreal crag, in 50 years: finish rpceditor

blazing basin
#

@gray bramble a bunch of customization has now been added for spotify

gray bramble
#

o.o

blazing basin
#

i was gonna send a screenshot as but no perms :(

gray bramble
#

can we also have a current timestamp. if you cant use the spotify api or whatnot you can always track how long its been since the activity changed

#

I hope to do something like {{Position}}:{{Duration}}

blazing basin
#

I thought of that but there's a couple reasons why I didn't do that

  • I don't know if it counts as api abuse but I don't want to risk doing that
  • A while ago I noticed that quickly updating an activity makes most updates get ignored by the server, so I think adding that in would make it so there's big delays in song changes (and the current position would be pretty laggy as well)
#

and you can't use discord timestamps in activities either

gray bramble
#

i thought some games could do it so i figured itd be fine

blazing basin
#

idk why it shows x time left on mobile but not on desktop

#

however if you have the TimeBarAllActivities plugins you'll see the timebar again (but others wont unless they have the plugin as well)

blazing basin
wintry fulcrum
blazing basin
#

must have missed it there, I added it to mine as well tho

gray bramble
blazing basin
#

ah I see

robust cedar
#

separate 3rd line of descriptor and image hover text would be dope :]
also, I've seen that adding links to the title and image works somehow

blazing basin
#

how would adding links to title and image work?

robust cedar
#

oh okay nvm then mb

#

I've seen stuff but thats with an external API which hooks discords

#

wasnt sure if it modified those ties

blazing basin
robust cedar
#

aaaah aight gotcha

deep trout
#

you lie vbot

blazing basin
#

tyy

spiral cave
#

wait this is fire you're a legend

celest beacon
#

h

crystal lark
#

e

robust cedar
#

l

lean skiff
#

Stupid question. Is this windows only, or does it work for linux? Been looking for something like this, but the closest thing i could find was something called "clematis" which kinda sucked for what i wanted it to do

wintry fulcrum
#

oh wait

#

I think it could also work for that

lean skiff
#

Alright, Ill try it out. Thanks!

wintry fulcrum
#

You should be able to combine both of them

lean skiff
#

Combine? sorry, do you mean clematis and this plugin?

wintry fulcrum
#

Yes

lean skiff
#

what I understand from looking at this, is itll show any music that shows up on my pc (fuck i cant talk anymore. I need to sleep)

#

a picture says 1000 words, one sec

#

Nuts, cant send pics here.

#

Ill DM you it

wintry fulcrum
#

alright

quartz summit
#

Im not sure if this is possible but dose amazon music work with it?

blazing basin
#

i use and recommend mprisence to create a rich presence from mpris media and then use this plugin to change the name

blazing basin
quartz summit
blazing basin
noble lion
#

good

warm coral
#

I love this so much!

blazing basin
gray bramble
#

YO LETS GO

solid ore
#

big win

proud pilot
blazing basin
#

not sure, you could check through customrpc by putting a start and end timestamp

#

I'd guess it's not

frail mauve
#

kizzy to make the rpc

#

from an FOSS music app i use

blazing basin
#

what didn't work? the timebar or the plugin

frail mauve
blazing basin
#

actually ill just try it and see how it works

frail mauve
frail mauve
frail mauve
#

thats link to kizzy

blazing basin
# frail mauve Yep

okay so what i think is happening is it acts as its own discord client without making the rpc spawn through vencord. The plugin doesn't change other clients' rpcs

frail mauve
blazing basin
frail mauve
#

also

#

do you know how to get discord time bar on activities

#

cuz i heard it came out for all activities and not just spotify recently

blazing basin
#

The activity needs to have start and end timestamps and it should show up

blazing basin
#

yea

frail mauve
#

cuz i suggested them ( kizzy ) to make it ( time bar ) and they were like they couldnt find any code thingy to make it

blazing basin
#
        const activity: Activity = {
            application_id,
            name: "whatever",
            type: ActivityType.LISTENING,
            flags: 0,
            details: "details",
            state: "state",
            timestamps: {
                start: Date.now(),
                end: (Date.now() + (e.track.duration ?? 0))
            },
            assets: {
                large_image,
                large_text: "album"
            },
            buttons: [],
            metadata: {
                button_urls: []
            }
        };
spiral cave
#

since creator updated their repo to say discontinued, just wanted to put a note for anyone who sees this → your status won't be visible to others unless you have a button in it. (for spotify at least, not sure about non-spotify)