mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-26 20:09:47 +01:00
Polishing
This commit is contained in:
parent
ea4d94fa84
commit
06828d8738
5 changed files with 11 additions and 15 deletions
|
|
@ -7,7 +7,6 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/deluan/gosonic/consts"
|
||||
"github.com/deluan/gosonic/domain"
|
||||
"github.com/deluan/gosonic/utils"
|
||||
)
|
||||
|
|
@ -37,7 +36,7 @@ func (b *browser) MediaFolders() (domain.MediaFolders, error) {
|
|||
}
|
||||
|
||||
func (b *browser) Indexes(ifModifiedSince time.Time) (domain.ArtistIndexes, time.Time, error) {
|
||||
l, err := b.propRepo.DefaultGet(consts.LastScan, "-1")
|
||||
l, err := b.propRepo.DefaultGet(PropLastScan, "-1")
|
||||
ms, _ := strconv.ParseInt(l, 10, 64)
|
||||
lastModified := utils.ToTime(ms)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
package engine
|
||||
|
||||
const (
|
||||
PropLastScan = "LastScan"
|
||||
)
|
||||
|
||||
type Property struct {
|
||||
Id string
|
||||
Value string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue