Skip to content

Commit

Permalink
minidlna += 1.3.1-011 (fixed live_browsing option config bitflag, fix…
Browse files Browse the repository at this point in the history
…ed album_art patch, other minors)
  • Loading branch information
negan07 committed Jun 9, 2022
1 parent dff504f commit 8e50425
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
strict_dlna=no

+# extract video filenames only from file's metadata
+#only_file_names=no
+#only_filenames=yes
+
# default presentation url is http address on port 80
#presentation_url=http://www.mylan/index.php
Expand All @@ -40,7 +40,7 @@
which may hurt JPEG serving performance on (at least) Sony DLNA products.
.fi

+.IP "\fBonly_file_names\fP"
+.IP "\fBonly_filenames\fP"
+Set to 'yes' to only consider file's filename when naming it in database.
+By default, if file has a name in metadata, it's used instead of filename.
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,14 @@
sql_exec(db, "INSERT into OBJECTS"
" (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME) "
"VALUES"
--- work/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/upnpsoap.c
+++ work/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/upnpsoap.c
@@ -1203,6 +1203,8 @@
}
}
}
+ if( *mime == 'v' && GETFLAG(THUMBS_ART_MASK) )
+ album_art = 0;
if( NON_ZERO(album_art) )
{
/* Video and audio album art is handled differently */
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
case ENABLE_SUBTITLES:
if (!strtobool(ary_options[i].value))
CLEARFLAG(SUBTITLES_MASK);
--- work/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna.conf
+++ work/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna.conf
@@ -45,6 +45,9 @@
# enable sending thumbnails
#thumbnails=yes

+# enable live browsing
+#live_browsing=yes
+
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

--- work/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna.conf.5
+++ work/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna-git-66939d5ac4986020764c0518455f55b68422369f/minidlna.conf.5
@@ -130,6 +130,12 @@
Expand Down Expand Up @@ -210,7 +222,7 @@
#define FORCE_ALPHASORT_MASK 0x0800
#define NO_EXTRACT_NAMES_MASK 0x1000
#define THUMBS_ART_MASK 0x2000
+#define LIVE_BROWSING_MASK 0x3000
+#define LIVE_BROWSING_MASK 0x4000

#define SETFLAG(mask) runtime_flags |= mask
#define GETFLAG(mask) (runtime_flags & mask)
Expand Down Expand Up @@ -259,23 +271,23 @@

/* Make sure we have at least 8KB left of allocated memory to finish the response. */
if( str->off > (str->size - 8192) )
@@ -1341,6 +1355,7 @@
@@ -1343,6 +1357,7 @@
char *sql, *ptr;
struct Response args;
struct string_s str;
+ struct string_s tags;
int totalMatches = 0;
int ret;
const char *ObjectID, *BrowseFlag;
@@ -1356,6 +1371,7 @@
@@ -1358,6 +1373,7 @@

memset(&args, 0, sizeof(args));
memset(&str, 0, sizeof(str));
+ memset(&tags, 0, sizeof(tags));

ParseNameValue(h->req_buf + h->req_contentoff, h->req_contentlen, &data, 0);

@@ -1405,11 +1421,22 @@
@@ -1407,11 +1423,22 @@
ret = strcatf(&str, SEC_NAMESPACE);
strcatf(&str, ">\n");

Expand All @@ -298,7 +310,7 @@
DPRINTF(E_DEBUG, L_HTTP, "Browsing ContentDirectory:\n"
" * ObjectID: %s\n"
" * Count: %d\n"
@@ -1435,7 +1462,7 @@
@@ -1437,7 +1464,7 @@
refid_sql = magic->refid_sql;
}
sql = sqlite3_mprintf("SELECT %s, %s, %s, " COLUMNS
Expand All @@ -307,7 +319,7 @@
" where OBJECT_ID = '%q';",
objectid_sql, parentid_sql, refid_sql, id);
ret = sqlite3_exec(db, sql, callback, (void *) &args, &zErrMsg);
@@ -1551,8 +1578,14 @@
@@ -1553,8 +1580,14 @@
args.returned, totalMatches, updateID);
BuildSendAndCloseSoapResp(h, str.data, str.off);
browse_error:
Expand Down
2 changes: 1 addition & 1 deletion work/dirs.mak
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ MINIDLNA_NAME := minidlna
VER_$(MINIDLNA_NAME) := 1.3.1
MINIDLNA := $(MINIDLNA_NAME)-git-66939d5ac4986020764c0518455f55b68422369f
NAME_$(MINIDLNA) := $(MINIDLNA_NAME)$(DBG)
SUBVER_$(MINIDLNA) :=
SUBVER_$(MINIDLNA) := -011
VER_$(MINIDLNA) := $(VER_$(MINIDLNA_NAME))$(SUBVER_$(MINIDLNA))
DL_$(MINIDLNA) := https://sourceforge.net/code-snapshots/git/m/mi/minidlna/git.git
TAR_$(MINIDLNA) := minidlna-git-66939d5ac4986020764c0518455f55b68422369f.zip
Expand Down

0 comments on commit 8e50425

Please sign in to comment.