Write order for m3u
This commit is contained in:
parent
1c1c4ea6e8
commit
4d2eaefe1f
1 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ func (ia *incidentsAPI) getCallsM3U(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var b bytes.Buffer
|
b := new(bytes.Buffer)
|
||||||
|
|
||||||
callUrl := common.PtrTo(*ia.baseURL)
|
callUrl := common.PtrTo(*ia.baseURL)
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ func (ia *incidentsAPI) getCallsM3U(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
callUrl.Path = "/api/call/" + c.ID.String()
|
callUrl.Path = "/api/call/" + c.ID.String()
|
||||||
|
|
||||||
fmt.Fprintf(w, "#EXTINF:%d,%s%s (%s)\n%s\n\n",
|
fmt.Fprintf(b, "#EXTINF:%d,%s%s (%s)\n%s\n\n",
|
||||||
c.Duration.Seconds(),
|
c.Duration.Seconds(),
|
||||||
tg.StringTag(true),
|
tg.StringTag(true),
|
||||||
from,
|
from,
|
||||||
|
|
Loading…
Reference in a new issue