24 lines
313 B
Go
24 lines
313 B
Go
|
|
package tmdb
|
||
|
|
|
||
|
|
import sdk "github.com/cyruzin/golang-tmdb"
|
||
|
|
|
||
|
|
//go:generate stringer -type=Type
|
||
|
|
type Type uint8
|
||
|
|
|
||
|
|
const (
|
||
|
|
Unknown Type = iota
|
||
|
|
Movie
|
||
|
|
Series
|
||
|
|
)
|
||
|
|
|
||
|
|
type TVDetails struct {
|
||
|
|
Series *sdk.TVDetails
|
||
|
|
Episode *sdk.TVEpisodeDetails
|
||
|
|
}
|
||
|
|
|
||
|
|
type Info struct {
|
||
|
|
ID int
|
||
|
|
Type Type
|
||
|
|
Season int
|
||
|
|
Episode int
|
||
|
|
}
|