mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Use MBID type from go.uploadedlobster.com/mbtypes
This commit is contained in:
parent
04eddfda33
commit
8fff19ceac
12 changed files with 82 additions and 188 deletions
|
@ -24,9 +24,10 @@ package models
|
|||
import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"go.uploadedlobster.com/mbtypes"
|
||||
)
|
||||
|
||||
type MBID string
|
||||
type Entity string
|
||||
|
||||
const (
|
||||
|
@ -44,11 +45,11 @@ type Track struct {
|
|||
DiscNumber int
|
||||
Duration time.Duration
|
||||
ISRC string
|
||||
RecordingMbid MBID
|
||||
ReleaseMbid MBID
|
||||
ReleaseGroupMbid MBID
|
||||
ArtistMbids []MBID
|
||||
WorkMbids []MBID
|
||||
RecordingMbid mbtypes.MBID
|
||||
ReleaseMbid mbtypes.MBID
|
||||
ReleaseGroupMbid mbtypes.MBID
|
||||
ArtistMbids []mbtypes.MBID
|
||||
WorkMbids []mbtypes.MBID
|
||||
Tags []string
|
||||
AdditionalInfo AdditionalInfo
|
||||
}
|
||||
|
@ -110,8 +111,8 @@ type Love struct {
|
|||
Track
|
||||
Created time.Time
|
||||
UserName string
|
||||
RecordingMbid MBID
|
||||
RecordingMsid MBID
|
||||
RecordingMbid mbtypes.MBID
|
||||
RecordingMsid mbtypes.MBID
|
||||
}
|
||||
|
||||
type ListensList []Listen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue