Skip to content

Commit

Permalink
Bug fix - SamsungTV PW doesn't get stored.
Browse files Browse the repository at this point in the history
  • Loading branch information
reboost committed Feb 6, 2021
1 parent e408035 commit f6e43a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion upnpsoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ static void createPasswordContainer(struct Response *passed_args, const char *id


if (depth == runtime_vars.password_length) {
if (!isMeta) {
if (!isMeta || passed_args->client == ESamsungSeriesCDE) {
// Find the First Parent after the Primary Parent
for (i=0; id[i] != '$' && i < strlen(id);i++);

Expand Down Expand Up @@ -1535,6 +1535,10 @@ BrowseContentDirectory(struct upnphttp * h, const char * action)
DPRINTF(E_INFO, L_PASSWORD, "Is Password MetaData %s", ObjectID);
totalMatches = 1;
createPasswordContainer(&args, ObjectID, 1);
if ( h->req_client && args.client == ESamsungSeriesCDE ) {
DPRINTF(E_INFO, L_HTTP, "Passwords %s\n", args.password);
h->req_client->password = args.password;
}
} else {
magic = in_magic_container(ObjectID, args.flags, &id);
if (magic)
Expand Down

0 comments on commit f6e43a4

Please sign in to comment.