Skip to content

Commit

Permalink
Option notify_interval won't be inherited #6 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 authored Sep 13, 2023
1 parent d564044 commit 928c213
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ ENV MINIDLNA_MODEL_NAME ""
ENV MINIDLNA_MODEL_NUMBER ""

ENV MINIDLNA_ENABLE_INOTIFY ""
ENV MINIDLNA_NOTIFY_INTERVAL ""

ENV MINIDLNA_STRICT_DLNA ""

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ MINIDLNA_SERIAL|Serial number the server reports to clients. Defaults to the MAC
MINIDLNA_MODEL_NAME|Model name the server reports to clients
MINIDLNA_MODEL_NUMBER|Model number the server reports to clients. Defaults to the version number of minidlna.
MINIDLNA_ENABLE_INOTIFY|Automatic discovery of new files in the media_dir directory
MINIDLNA_NOTIFY_INTERVAL|Set the notify interval, in seconds. The default is 895 seconds.
MINIDLNA_STRICT_DLNA|Strictly adhere to DLNA standards
MINIDLNA_ROOT_CONTAINER|Possible values are `.` (Default), `B` (Browse), `M` (Music), `V` (Vidoes), `P` (Pictures)
MINIDLNA_FORCE_SORT_CRITERIA|Always set SortCriteria to this value, regardless of the SortCriteria passed by the client e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
Expand Down Expand Up @@ -132,5 +133,6 @@ Just be careful to use the tag you have built.

Date|Major Changes
:---|:---
2023-09-13|Add support to notify interval, see [#6](https://github.com/GioF71/minidlna-docker/issues/6)
2023-07-24|Switch to bookworm, see [#2](https://github.com/GioF71/minidlna-docker/issues/2)
2022-10-23|Initial release
4 changes: 4 additions & 0 deletions app/bin/run-minidlna.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ if [ -n "${MINIDLNA_ENABLE_INOTIFY}" ]; then
fi
fi

if [ -n "${MINIDLNA_NOTIFY_INTERVAL}" ]; then
echo "notify_interval=${MINIDLNA_NOTIFY_INTERVAL}" >> $CONFIG_FILE
fi

cat /app/conf/album-art.conf.snippet >> $CONFIG_FILE

if [ -n "${MINIDLNA_STRICT_DLNA}" ]; then
Expand Down

0 comments on commit 928c213

Please sign in to comment.