Url string `json:"-"`
Codec string
ReUpTime time.Time
+ CreateTime time.Time
DisableCount int
Expires time.Time //流到期时间
}
Host string
Up bool
Codec string
+ CreateTime string
ReUpTime string
Expires string
DisableCount int
Host: t.Host(),
Up: time.Now().After(t.ReUpTime),
Codec: t.Codec,
+ CreateTime: t.CreateTime.Format(time.DateTime),
ReUpTime: t.ReUpTime.Format(time.DateTime),
Expires: t.Expires.Format(time.DateTime),
DisableCount: t.DisableCount,
//直播流链接
for _, v1 := range v.URLInfo {
item := c.LiveQn{
- Codec: v.CodecName,
- Url: v1.Host + v.BaseURL + v1.Extra,
+ Codec: v.CodecName,
+ Url: v1.Host + v.BaseURL + v1.Extra,
+ CreateTime: time.Now(),
}
if query, e := url.ParseQuery(v1.Extra); e == nil {