mirror of
https://github.com/Monibuca/plugin-hdl.git
synced 2025-10-05 08:47:00 +08:00
优化代码
This commit is contained in:
3
main.go
3
main.go
@@ -60,7 +60,6 @@ func init() {
|
||||
if plugin := InstallPlugin(config); plugin != nil {
|
||||
plugin.HandleApi("/list", util.GetJsonHandler(getHDList, time.Second))
|
||||
plugin.HandleFunc("/pull", func(rw http.ResponseWriter, r *http.Request) {
|
||||
util.CORS(rw, r)
|
||||
targetURL := r.URL.Query().Get("target")
|
||||
streamPath := r.URL.Query().Get("streamPath")
|
||||
save := r.URL.Query().Get("save")
|
||||
@@ -111,7 +110,7 @@ func (config *HDLConfig) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
metaData := amf.Object{
|
||||
"MetaDataCreator": "m7s",
|
||||
"MetaDataCreator": "m7s" + Version,
|
||||
"hasVideo": vt != nil,
|
||||
"hasAudio": at != nil,
|
||||
"hasMatadata": true,
|
||||
|
Reference in New Issue
Block a user