Package oldflix (v1.11.1) [up] [repository]

Index

Constants

const BaseUrl = "https://oldflix-api.azurewebsites.net"

Types

type Browse

type Browse struct {
	Id    string
	Movie struct {
		Id     string
		Tracks []Track
	}
}

Methods

func (b *Browse) FetchWatch(trackId, token string) (*Watch, error)
func (b *Browse) GetOriginal() (*Track, error)

type Hls

type Hls struct {
	Body []byte
	Url  *url.URL
}

type Login

type Login struct {
	Status int
	Token  string
}

Functions

func FetchLogin(username, password string) (*Login, error)

Methods

func (l *Login) FetchBrowse(contentId string) (*Browse, error)

https://oldflix.com.br/browse/play/5d5d54a4d55dc050f8468513

type Track

type Track struct {
	Id   string
	Lang string
	Lnk  string
}

type Watch

type Watch struct {
	Message  string
	Playlist []struct {
		File string
	}
}

Methods

func (w *Watch) FetchHls() (*Hls, error)