feat: cdn cutover
This commit is contained in:
parent
57bd614e5d
commit
979d895f33
20 changed files with 43 additions and 67 deletions
|
@ -4,13 +4,12 @@ title: 'Building a scrobbler using Plex webhooks, edge functions and blob storag
|
|||
'
|
||||
description: "I've written before about embedding music into my site and I've largely used Last.fm to do so. Their API is rather extensive, though it is showing its age — the default response format is XML, they've dropped artist images and have intermittently failed to return album art. ListenBrainz is great, but client support is still lacking. I've also tried charting Apple Music data from their (quite limited) API."
|
||||
tags: ['Eleventy', 'development', 'music', 'indie web', 'javascript', 'Plex', 'Plexamp', 'Netlify']
|
||||
image: https://cdn.coryd.dev/blog/scrobbler.png
|
||||
---
|
||||
I've written before about [embedding music into my site](https://coryd.dev/posts/2024/weaving-music-in-and-out-of-my-personal-site/) and I've largely used Last.fm to do so. Their API is rather extensive, though it is showing its age — the default response format is XML, they've dropped artist images and have intermittently failed to return album art. ListenBrainz is *great*, but client support is still lacking. [I've also tried charting Apple Music data from their (quite limited) API.](https://coryd.dev/posts/2023/road-to-madness-apple-music-charts/)<!-- excerpt -->
|
||||
|
||||
I could have kept depending on Last.fm and — don't get me wrong — I love Last.fm. It's one of those valuable, legacy services that's hanging on with a rich user base and historical recommendations. I'm going to keep scrobbling data there and to ListenBrainz[^1].
|
||||
|
||||
{% image 'https://cdn.coryd.dev/blog/scrobbler.png', 'A diagram of the scrobbling architecture', 'image__banner', 'eager' %}
|
||||
{% image 'https://coryd.dev/.netlify/images/?url=https://f001.backblazeb2.com/file/coryd-dev-images/blog/scrobbler.png&w=1200', 'A diagram of the scrobbling architecture', 'image__banner', 'eager' %}
|
||||
|
||||
What I've long wanted is something that sits on infrastructure I control, stores my own data and lets me present roughly the same data. Given that Plex will issue outbound webhooks, I thought I'd set up an edge function over at Netlify and point a webhook at it to see what I could do with the inbound payload. What Plex sends is fairly lightweight and ended up needing to be read in from form data on the `POST`, but it was enough to work with.
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ date: '2024-02-07'
|
|||
title: 'On getting tattooed'
|
||||
description: "I got my first tattoo over ten years ago. It was a few lines from Tom Waits' *[Coney Island Baby](https://www.youtube.com/watch?v=A-Tod1_tZdU)* set on the inside of my left bicep as a dedication to my then fiancé and now wife of ten years. I was told recently that that's a really painful spot but, I suppose, I didn't know what I was getting into outside of having an artist recommended by a dear friend that I trust implicitly."
|
||||
tags: ['tattoos', 'music']
|
||||
image: https://cdn.coryd.dev/blog/half-sleeve.jpg
|
||||
---
|
||||
I got my first tattoo over ten years ago. It was a few lines from Tom Waits' *[Coney Island Baby](https://www.youtube.com/watch?v=A-Tod1_tZdU)* set on the inside of my left bicep as a dedication to my then fiancé and now wife of ten years. I was told recently that that's a really painful spot but, I suppose, I didn't know what I was getting into outside of having an artist recommended by a dear friend that I trust implicitly.<!-- excerpt -->
|
||||
|
||||
|
@ -28,7 +27,7 @@ My parents started getting tattooed in their 50s, thinking it would be a cheaper
|
|||
Each piece was important to me when I got it and remains important to me now. They're references to and reminders of important moments and I enjoy every session[^6]. But, for now, my shoulder is sore.
|
||||
|
||||
{% capture fallbackIcon %}{% tablericon "photo" "A photo of the Sturgill Simpson-inspired half sleeve referenced above." %}{% endcapture %}
|
||||
{% image 'https://cdn.coryd.dev/blog/half-sleeve.jpg', 'A photo of the Sturgill Simpson-inspired half sleeve referenced above.', 'image__banner', 'eager' %}
|
||||
{% image 'https://coryd.dev/.netlify/images/?url=https://f001.backblazeb2.com/file/coryd-dev-images/blog/half-sleeve.jpg&w=1200', 'A photo of the Sturgill Simpson-inspired half sleeve referenced above.', 'image__banner', 'eager' %}
|
||||
|
||||
[^1]: My wife got the same piece done — there was one pointing to the driveway of the house we got married at. It burned down in the Butte fire.
|
||||
[^2]: She got elected!
|
||||
|
|
Reference in a new issue