Skip to content

Commit

Permalink
Save current cover as current.jpeg for initial loading
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Crane <marcus@utf9k.net>
  • Loading branch information
marcus-crane committed Mar 22, 2024
1 parent d538dc1 commit 8f55857
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jobs/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ func LoadCover(guid string, extension string) (string, error) {
}

func saveCover(guid string, image []byte, extension string) error {
os.WriteFile(fmt.Sprintf("%s/current.jpeg", STORAGE_DIR), image, 0644)
return os.WriteFile(fmt.Sprintf("%s/cover.%s.%s", STORAGE_DIR, guid, extension), image, 0644)
}

0 comments on commit 8f55857

Please # to comment.