Skip to content

Commit

Permalink
Better support for Samsung SmartTV for built-in DLNA server (stashapp…
Browse files Browse the repository at this point in the history
  • Loading branch information
sergelevin authored and halkeye committed Sep 1, 2024
1 parent 8f249e4 commit 7711d3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/dlna/cds.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func sceneToContainer(scene *models.Scene, parent string, host string) interface
Path: iconPath,
RawQuery: url.Values{
"scene": {strconv.Itoa(scene.ID)},
"c": {"jpeg"},
}.Encode(),
}).String()

Expand Down
2 changes: 2 additions & 0 deletions internal/dlna/dms.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ func (me *Server) initMux(mux *http.ServeMux) {
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)
})
mux.HandleFunc(rootDescPath, func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 7711d3b

Please sign in to comment.