mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-20 14:22:47 -04:00
Dont extract thumbnails if already exists
This commit is contained in:
@@ -71,6 +71,10 @@ func extractThumbnail(path string, name string) (string, error) {
|
||||
sprite_path := fmt.Sprintf("%s/sprite.png", out)
|
||||
vtt_path := fmt.Sprintf("%s/sprite.vtt", out)
|
||||
|
||||
if _, err := os.Stat(sprite_path); err != nil {
|
||||
return out, nil
|
||||
}
|
||||
|
||||
gen, err := screengen.NewGenerator(path)
|
||||
if err != nil {
|
||||
log.Printf("Error reading video file: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user