Add support for forcing re-generation of chapter/video thumbnails for individual videos

Recently there was a power outage while some library items were being ingested into the Plex server. Though they were ingested, identified, and apparently scanned properly, some of the items’ chapter/video thumbnails (used for navigating the timeline) were not fully rendered.

The only way to cause them to re-render is to remove the items and re-add them.

However, there should be a per-item option to “Re-generate thumbnails”, just like there’s a per-item “analyze”, “Refresh Metadata”, or “Optimize”. This would make life significantly easier in cases where unforeseen circumstances interrupt the thumbnail generation.

Furthermore, since some of the thumbnails were successfully generated, it seems the periodic/automatic generation that also happens overnight doesn’t pick up the files and thus doesn’t attempt to complete the job. So…either the per-item “Re-generate thumbnails” command, or fixing the periodic/automatic thumbnail generation task to detect and correct incompletely generated thumbnails is necessary.

I guess the easy way to do this is to have a database column “THUMBNAILS_READY” or somesuch that’s either null or “0” for newly-added content, and only gets set to a non-null value or “1” when the thumbnail generator fully succeeds in its task. That, I think, would help a LOT.

Thanks!

Early 2021 clean-up: implemented (analyze should trigger this if the file has changed)