mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 10:38:51 +02:00
linux static build
This commit is contained in:
@@ -560,6 +560,10 @@ func getImages(path string) []string {
|
||||
|
||||
// Returns the filename that is the most likely to be the cover
|
||||
func getCover(images []string) string {
|
||||
if len(images) == 0 {
|
||||
return ""
|
||||
}
|
||||
|
||||
for _, i := range images {
|
||||
if strings.HasPrefix(i, "cover") || strings.HasPrefix(i, "front") {
|
||||
return i
|
||||
|
Reference in New Issue
Block a user