feat(Gensokyo Radio): add presence - #11181
Open
nyannoying1337 wants to merge 4 commits into
Open
Conversation
Contributor
🖼️ Activity asset previewAnother day, another diff. Here's everything shiny I could dig out of this one. Gensokyo Radio (
|
| Preview | Source | URL |
|---|---|---|
![]() |
logo | https://i.imgur.com/D3eyWs8.png |
![]() |
thumbnail | https://i.imgur.com/ooORT0H.png |
Beep boop — I refresh this comment on every push, so no need to scroll. 🤖
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Acknowledgements
npm run lintScreenshots
Proof showing the creation/modification is working as expected
Here's every status this presence can show, by page type:
Player (app.gensokyoradio.net/player, gensokyoradio.net/playing/)
No data yet: Connecting to Gensokyo Radio… / 100% fan-made Touhou Project music
Playing: ▶ {title} / {artist} — {circle} — with progress bar, "Playing" badge
Paused: same text, "Paused" badge, no progress bar
Store (gensokyo.store)
Browsing the Gensokyo Store / Merch & music
Forum (forum.gensokyoradio.net)
Topic page: Reading a forum topic / "{topic title}" in {category}
Category page: Browsing the {category} forum
Anything else on the forum: Browsing the Forums
News & Reviews articles (title contains (News) or (Reviews))
Reading through news or Reading a review / {article title}
Listing pages (no specific article): Browsing News / Browsing Reviews
Classic site, everything else (path-based, ignores their sometimes-stale tab title)
/music/circle// → Browsing a Circle
/music/circle/ → Browsing Circles
/music/artist// → Browsing an Artist
/music/artist/ → Browsing Artists
/music/album// → Browsing an Album
/music/ → Browsing Music
/shows/ → Browsing Podcasts
/search/ → Searching Gensokyo Radio
/faq → Reading the FAQ
/about → Learning About Gensokyo Radio
/account* → Managing their Account
Anything unmapped → Browsing {Page Name} (parsed from their title), or Browsing Gensokyo Radio as last resort
Known limitation: On the classic gensokyoradio.net/playing/ page, the play/pause state always shows "Playing." That page has no element and its stop/play icon is driven by a SMIL animation with no state reliably readable from JS. The Angular app.gensokyoradio.net/player page has a proper icon-based indicator and correctly reflects Play/Pause there.