2022-02-05 19:59:41 +00:00
|
|
|
package scrobble
|
|
|
|
|
2022-02-05 21:52:46 +00:00
|
|
|
const(
|
|
|
|
SCROBBLE_TYPE_LISTEN = "listen"
|
|
|
|
SCROBBLE_TYPE_TV = "tv"
|
|
|
|
SCROBBLE_TYPE_MOVIE = "movie"
|
|
|
|
SCROBBLE_TYPE_READ = "read"
|
|
|
|
)
|
|
|
|
|
2022-02-05 19:59:41 +00:00
|
|
|
var ScrobbleTypeNames = map[string]string {
|
|
|
|
"scrobble" : "🎧 Listen",
|
|
|
|
"tv" : "📺 TV Show",
|
|
|
|
"movie": "🎬 Movie",
|
|
|
|
"read": "📖 Read",
|
2022-02-05 21:52:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
var ScrobblePlaceholders = map[string]string {
|
|
|
|
"scrobble" : "Jump Van Halen",
|
|
|
|
"tv" : "Schitt's Creek",
|
|
|
|
"movie": "Ferris Bueller's Day Off",
|
|
|
|
"read": "Three Body Problem Cixin Liu",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
type ScrobbleMetaRecord interface{
|
|
|
|
GetID() string
|
|
|
|
GetDisplayName() string
|
|
|
|
GetCanonicalURL() string
|
|
|
|
GetThumbnailURL() string
|
|
|
|
}
|
|
|
|
|
|
|
|
type ScrobbleMetaProvider interface{
|
|
|
|
|
|
|
|
GetName() string
|
|
|
|
Search(query string) ([]ScrobbleMetaRecord, error)
|
|
|
|
GetItem(id string) (ScrobbleMetaRecord, error)
|
|
|
|
}
|