Initial support for song browsing from UI

This commit is contained in:
Deluan
2020-01-22 10:19:13 -05:00
parent fdf1ceeade
commit 9557f7ceed
17 changed files with 158 additions and 28 deletions
+1 -2
View File
@@ -8,7 +8,6 @@ import (
"path"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
@@ -243,7 +242,7 @@ func (s *TagScanner) toMediaFile(md *Metadata) model.MediaFile {
mf.BitRate = md.BitRate()
mf.Path = md.FilePath()
mf.Suffix = md.Suffix()
mf.Size = strconv.Itoa(md.Size())
mf.Size = md.Size()
mf.HasCoverArt = md.HasPicture()
// TODO Get Creation time. https://github.com/djherbis/times ?