cory,
@cory@social.lol avatar

Surprised that worked: Plex webhook to a Netlify edge function, cache track JSON to blob storage, hydrate artist and album meta from Last.fm/MusicBrainz, pull said data, derive a chart and throw that on my now page.

Going to write up a post on all the (probably ill-advised) mechanics.

cory,
@cory@social.lol avatar

Sets and retrieves the last played track via a JSON blob too

flamed,
@flamed@social.lol avatar

@cory can you get the cover art from plex? Ive bot had a moment to sit down to check that out

cory,
@cory@social.lol avatar

@flamed I don’t believe so since the paths in the payload are all relative — I dropped my audio files in Meta on macOS, exported the art and let Hazel rename them and strip special characters out so my site can match them on the CDN.

dusnm,
@dusnm@fosstodon.org avatar

@cory Sounds like an unnecessarily long pipeline. 😃

cory,
@cory@social.lol avatar

@dusnm haha perhaps — webhook to storage, storage to api request details aside

  • All
  • Subscribed
  • Moderated
  • Favorites
  • webdev
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cubers
  • megavids
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines