Added a job to my feed aggregator/Microsub server …

Added a job to my feed aggregator/Microsub server that quickly validates mf2 media, i.e., the URLs that end up in entries’ `photo` and `video` arrays, by means of a HEAD request. If the server returns a 404 (or similar), the URL is probably faulty (e.g., the result of a misplaced `u-photo` tag), and the item removed from the list. No more (well, definitely less) “broken images” below posts!

5 responses to “Added a job to my feed aggregator/Microsub server …”

  1. Tim Chambers Avatar

    … reblogged this!

  2. Matthias Pfefferle Avatar

    … favorited this!

  3. Jan Boddez Avatar

    Meanwhile, I’m adding autogenerated poster images to (certain) videos. Bit of a (resource-heavy) gimmick, perhaps, as `preload="metadata"` on the client side works _almost_ as well (and doesn’t require FFmpeg to be installed on the server).

  4. Jan Boddez Avatar

    Should definitely make this optional. Probably shouldn't use it without Redis queuing, either. Takes a little over 3 seconds _per video_ to grab and save a frame.

  5. Jan Boddez Avatar

    Added a basic lightbox, too. Very nice.