mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Better support for Samsung SmartTV for built-in DLNA server (#4784)
This commit is contained in:
@@ -85,7 +85,6 @@ func sceneToContainer(scene *models.Scene, parent string, host string) interface
|
|||||||
Path: iconPath,
|
Path: iconPath,
|
||||||
RawQuery: url.Values{
|
RawQuery: url.Values{
|
||||||
"scene": {strconv.Itoa(scene.ID)},
|
"scene": {strconv.Itoa(scene.ID)},
|
||||||
"c": {"jpeg"},
|
|
||||||
}.Encode(),
|
}.Encode(),
|
||||||
}).String()
|
}).String()
|
||||||
|
|
||||||
|
|||||||
@@ -595,6 +595,8 @@ func (me *Server) initMux(mux *http.ServeMux) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w.Header().Set("transferMode.dlna.org", "Streaming")
|
||||||
|
w.Header().Set("contentFeatures.dlna.org", "DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000")
|
||||||
me.sceneServer.StreamSceneDirect(scene, w, r)
|
me.sceneServer.StreamSceneDirect(scene, w, r)
|
||||||
})
|
})
|
||||||
mux.HandleFunc(rootDescPath, func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc(rootDescPath, func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user