|
|
|
@ -46,7 +46,7 @@ type BaseMovie struct {
|
|
|
|
|
Proxy bool `json:"proxy"`
|
|
|
|
|
RtmpSource bool `json:"rtmpSource"`
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
Headers map[string][]string `json:"headers"`
|
|
|
|
|
Headers map[string]string `json:"headers"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MovieConf func(m *Movie)
|
|
|
|
@ -69,7 +69,7 @@ func WithCreator(creator *User) MovieConf {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewMovie(id uint64, url, name, type_ string, live, proxy, rtmpSource bool, headers map[string][]string, conf ...MovieConf) (*Movie, error) {
|
|
|
|
|
func NewMovie(id uint64, url, name, type_ string, live, proxy, rtmpSource bool, headers map[string]string, conf ...MovieConf) (*Movie, error) {
|
|
|
|
|
return NewMovieWithBaseMovie(id, BaseMovie{
|
|
|
|
|
Url: url,
|
|
|
|
|
Name: name,
|
|
|
|
@ -158,7 +158,7 @@ type MovieInfo struct {
|
|
|
|
|
Proxy bool `json:"proxy"`
|
|
|
|
|
RtmpSource bool `json:"rtmpSource"`
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
Headers map[string][]string `json:"headers"`
|
|
|
|
|
Headers map[string]string `json:"headers"`
|
|
|
|
|
PullKey string `json:"pullKey"`
|
|
|
|
|
CreateAt int64 `json:"createAt"`
|
|
|
|
|
LastEditAt int64 `json:"lastEditAt"`
|
|
|
|
|