Cache audio waveforms and rescue oversized GIF previews
This commit is contained in:
+3
-2
@@ -91,8 +91,9 @@ media-scrape/db/
|
||||
- Third-party embeds are **never downloaded as media**: YouTube, Instagram, X, TikTok, and every
|
||||
other embed stays a link. Its thumbnail is cached (below); the video itself is never fetched.
|
||||
- Previews are cached in `thumbs/` after every walk, in both modes: Discord-hosted images, GIFs,
|
||||
and video files (the proxy renders a frame, resized to 320px WebP) plus third-party embed
|
||||
thumbnails (YouTube, X, TikTok, and so on). The
|
||||
and video files (the proxy renders a frame, resized to 320px WebP), third-party embed thumbnails
|
||||
(YouTube, X, TikTok, and so on), and audio, which gets a waveform strip so audio tiles are not
|
||||
blank. The
|
||||
stored bytes keep their real type (`preview_ext`), so JPEG provider thumbnails are served as
|
||||
`image/jpeg`, not mislabeled WebP. Embeds without a thumbnail in Discord's data are resolved
|
||||
through the provider's oEmbed/fxtwitter API and finally the page's `og:image`. Previews count
|
||||
|
||||
Reference in New Issue
Block a user