Skip to content

Commit

Permalink
Implement required connectionManagerService and mediaReceiverRegistra…
Browse files Browse the repository at this point in the history
…rService (#86)

* add custom content reader

* set max read buffer size

* fix for windows

* icon test

* fix build

* disable form

* Update dms.go

* disable debug

* Update dms.go

* Revert "Update dms.go"

This reverts commit 3ac0277.

* update dms root desc

* add mediaReceiverRegistrarService

* cleanup

* debug headers

* debug

* debug

* Update ssdp.go

* Update ssdp.go

* update mrrs and add samsung extensions

* remove excessive debug

* Samsung fixes? INCOMPLETE

rclone/rclone@e5464a2
rclone/rclone@62650a3#diff-f40e92407484ac6e006d89a1e522d590893cecdca95e11ddf04af96c543d59ff

* fix build

* revert samsung exensions

* remove PresentationURL

* restore default eventingLogger

* update dlna caps

* add presentation url with redirect to default torrserve port

* just format an icon load fix

* return rootDeviceUUID for RegisterDevice

* add DLNA.ORG_FLAGS to headers

* remove wrong match for images

* format xml and update defaultProtocolInfo

* fix / short SCPDs

* sync with upstream

* adopt other services too

* cleanup torrserve addons

* just format code indents

* Squashed commit of the following:

commit d5d0f56
Author: nikk gitanes <[email protected]>
Date:   Wed Sep 8 13:28:02 2021 +0300

    proper deviceIcons serve

    thx @YouROK

* fix testing

* format code in ide

* gofmt -l -w .

* revert orig names

* Revert "remove wrong match for images"

This reverts commit 3bba864.

* change containerid for X_GetFeatureList

* add notes about X_GetFeatureList and SearchXML to upnpav object

Co-authored-by: YouROK <[email protected]>
  • Loading branch information
tsynik and YouROK authored Jan 20, 2022
1 parent 980b2c6 commit 3d402bc
Show file tree
Hide file tree
Showing 12 changed files with 976 additions and 762 deletions.
3 changes: 2 additions & 1 deletion dlna/dlna.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func BinaryInt(b bool) uint {
// "DLNA.ORG_OP=" time-seek-range-supp bytes-range-header-supp
func (cf ContentFeatures) String() (ret string) {
// DLNA.ORG_PN=[a-zA-Z0-9_]*
params := make([]string, 0, 2)
params := make([]string, 0, 3)
if cf.ProfileName != "" {
params = append(params, "DLNA.ORG_PN="+cf.ProfileName)
}
Expand All @@ -41,6 +41,7 @@ func (cf ContentFeatures) String() (ret string) {
BinaryInt(cf.SupportTimeSeek),
BinaryInt(cf.SupportRange),
BinaryInt(cf.Transcoded)))
params = append(params, "DLNA.ORG_FLAGS=01700000000000000000000000000000")
return strings.Join(params, ";")
}

Expand Down
2 changes: 1 addition & 1 deletion dlna/dlna_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func TestContentFeaturesString(t *testing.T) {
Transcoded: true,
SupportTimeSeek: true,
}.String()
e := "DLNA.ORG_OP=10;DLNA.ORG_CI=1"
e := "DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000"
if e != a {
t.Fatal(a)
}
Expand Down
Loading

0 comments on commit 3d402bc

Please sign in to comment.