Problem
The pipeline (shortube/pipeline.py) regenerates the thumbnail on every run, even when the script/title/hook haven't changed (e.g. a resumed render). This wastes a Pillow render and disk writes.
Task
Skip thumbnail generation when a valid thumbnail.jpg already exists for the topic's output dir and the source inputs (script.title/script.hook) match the cached generation.
Acceptance criteria
Files
shortube/pipeline.py
tests/test_pipeline.py
Problem
The pipeline (
shortube/pipeline.py) regenerates the thumbnail on every run, even when the script/title/hook haven't changed (e.g. a resumed render). This wastes a Pillow render and disk writes.Task
Skip thumbnail generation when a valid
thumbnail.jpgalready exists for the topic's output dir and the source inputs (script.title/script.hook) match the cached generation.Acceptance criteria
tests/test_pipeline.py(mockgenerate_thumbnailand assert call count)Files
shortube/pipeline.pytests/test_pipeline.py