From c78518a49d90b889760fb71e04bb7cfe07339892 Mon Sep 17 00:00:00 2001 From: asboyer Date: Mon, 16 Feb 2026 20:17:03 -0500 Subject: [PATCH 1/4] feat: multi-platform support for fav.py and misc improvements - Add YouTube, SoundCloud, and generic URL support to fav.py with og:title/og:image scraping and PIL square-cropping for music categories - Extract platform icon detection into reusable platform-icon.liquid include - Refactor album_link icon in fav.liquid to use new include - Hide score circle in song/album layouts when no score is set - Add redirect field to all category templates - Sanitize special characters from titles, filenames, and creator names - Include exact timestamp in date field for proper sort ordering --- _includes/album.liquid | 14 +- _includes/scripts/platform-icon.liquid | 9 + _includes/song.liquid | 14 +- _layouts/fav.liquid | 11 +- _pages/vinyls.md | 2 +- fav.py | 258 +++++++++++++++++++------ 6 files changed, 229 insertions(+), 79 deletions(-) create mode 100644 _includes/scripts/platform-icon.liquid diff --git a/_includes/album.liquid b/_includes/album.liquid index 590d8f6c..e9cb0740 100644 --- a/_includes/album.liquid +++ b/_includes/album.liquid @@ -71,12 +71,14 @@ -
- - - {{ include.score }} - -
+ {% if include.score %} +
+ + + {{ include.score }} + +
+ {% endif %}