models

package
v0.0.0-...-1753806 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypeTrack   = "track"
	MediaTypeEpisode = "episode"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaFile

type MediaFile struct {
	ID     string        `json:"id"`
	Title  string        `json:"title"`
	Length time.Duration `json:"length"`
	Size   int           `json:"size"`
}

type MediaSource

type MediaSource struct {
	// contains filtered or unexported fields
}

func NewMediaSource

func NewMediaSource(uri string, accessToken string) *MediaSource

func (*MediaSource) IsDownloadURI

func (m *MediaSource) IsDownloadURI() bool

func (*MediaSource) IsSoundCloud

func (m *MediaSource) IsSoundCloud() bool

func (*MediaSource) IsSpotify

func (m *MediaSource) IsSpotify() bool

func (*MediaSource) IsTorrent

func (m *MediaSource) IsTorrent() bool

func (*MediaSource) IsUnknown

func (m *MediaSource) IsUnknown() bool

func (*MediaSource) IsYoutube

func (m *MediaSource) IsYoutube() bool

func (*MediaSource) Parse

func (m *MediaSource) Parse() error

func (*MediaSource) Proto

func (m *MediaSource) Proto() *proto.MediaSource

type Subtitle

type Subtitle struct {
	Lang string `bson:"lang" json:"size"`
	File string `bson:"file" json:"file"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL