Update main.go

pull/51/head
肥羊 3 years ago committed by GitHub
parent e71ac92c40
commit 781043d749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Golang/main.go

@ -116,7 +116,7 @@ func setupRouter(adurl string) *gin.Engine {
var res list.ApiResponse
json.Unmarshal([]byte(apiRes), &res)
for _, value := range res.Data.Data {
fmt.Fprintf(c.Writer, "#EXTINF:-1 tvg-logo=\"%s\" group-title=\"%s\", \"%s\"\n", value.Avatar, value.Biz, value.Desc)
fmt.Fprintf(c.Writer, "#EXTINF:-1 tvg-logo=\"%s\" group-title=\"%s\", %s\n", value.Avatar, value.Biz, value.Desc)
fmt.Fprintf(c.Writer, "%s/yy/%v\n", getLivePrefix(c), value.Sid)
}
if res.Data.IsLastPage == 1 {

Loading…
Cancel
Save