wybiral/firehose

C-SPAN thumbnails

wybiral opened this issue · 2 comments

These are broken. Their server is returning a 403. The URLs contain base64-encoded JSON so maybe it's possible to parse those and retrieve a working image link?

This looks like a processing delay on their side. Eventually the items get a proper thumbnail (as far as I can tell) but there's a delay. For example:

If you decode the base64 from each you find:

  • A: {"bucket":"pictures.c-spanvideo.org","key":"defaults\/BookTV_default-image.jpg","edits":{"resize":{"fit":"cover","height":135,"width":240}}}
  • B: {"bucket":"pictures.c-spanvideo.org","key":"Files\/7a5\/20200315230636002_hd.jpg","edits":{"resize":{"fit":"cover","height":135,"width":240}}}

This indicates that the initial URL is a default image and for some reason their default images are broken.

The best fix for now is probably just to ignore the thumbnails if they use a default key prefix like this. Otherwise we'd need a more complicated system to go back and correct the thumbnails once they get uploaded which doesn't seem worth it for this specific case.

Just removed the thumbnails entirely for now a6b44ef