linux static build

This commit is contained in:
Milan Nikolic
2015-11-02 07:55:29 +01:00
parent 1c3421028b
commit 8e3f7962d1
3 changed files with 8 additions and 2 deletions

View File

@@ -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