fix: 导出视频地址去掉通道名列
This commit is contained in:
parent
e8a8432c48
commit
bf5f0bbefe
@ -1675,7 +1675,7 @@ func (u *UI) actionDevicesExportChannels(w http.ResponseWriter, r *http.Request)
|
||||
w.Header().Set("Content-Type", "text/csv; charset=utf-8")
|
||||
w.Header().Set("Content-Disposition", "attachment; filename=video_channels.csv")
|
||||
w.Write([]byte("\xef\xbb\xbf"))
|
||||
w.Write([]byte("设备名,IP,通道名,视频源,RTSP地址,HLS地址\n"))
|
||||
w.Write([]byte("设备名,IP,视频源,RTSP地址,HLS地址\n"))
|
||||
|
||||
if u.preview == nil {
|
||||
return
|
||||
@ -1711,8 +1711,8 @@ func (u *UI) actionDevicesExportChannels(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
rtsp := fmt.Sprintf("rtsp://%s:%s/live/%s", devIP, rtspPort, unit.Name)
|
||||
hls := fmt.Sprintf("http://%s:9000/hls/%s/index.m3u8", devIP, unit.Name)
|
||||
fmt.Fprintf(w, "%s,%s,%s,%s,%s,%s\n",
|
||||
escapeCSV(devName), escapeCSV(devIP), escapeCSV(unit.Name),
|
||||
fmt.Fprintf(w, "%s,%s,%s,%s,%s\n",
|
||||
escapeCSV(devName), escapeCSV(devIP),
|
||||
escapeCSV(unit.VideoSourceRef), escapeCSV(rtsp), escapeCSV(hls))
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user