feat: store duration as float, to cater for milliseconds

This commit is contained in:
Deluan
2020-02-20 17:00:56 -05:00
parent 5525145906
commit fc14e346b9
12 changed files with 150 additions and 13 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ func (p *playlists) Get(ctx context.Context, id string) (*PlaylistInfo, error) {
Id: pl.ID,
Name: pl.Name,
SongCount: len(pl.Tracks),
Duration: pl.Duration,
Duration: int(pl.Duration),
Public: pl.Public,
Owner: pl.Owner,
Comment: pl.Comment,