mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
Add fullscan events, make configurator display fullscan items.
This commit is contained in:
@@ -202,7 +202,7 @@ extensions=.mp3,.m4a,.m4p
|
||||
#
|
||||
# rescan_interval
|
||||
#
|
||||
# How often to check the file system to see if any mp3 files
|
||||
# How often to check the file system (in sec) to see if any mp3 files
|
||||
# have been added or removed.
|
||||
#
|
||||
# if not specified, the default is 0, which disables background scanning.
|
||||
@@ -216,7 +216,7 @@ extensions=.mp3,.m4a,.m4p
|
||||
#
|
||||
#
|
||||
|
||||
#rescan_interval = 300
|
||||
rescan_interval = 600
|
||||
|
||||
# always_scan
|
||||
#
|
||||
@@ -227,7 +227,7 @@ extensions=.mp3,.m4a,.m4p
|
||||
# 24x7. Forcing a scan through the web interface will always work
|
||||
# though, even if no users are connected.
|
||||
|
||||
# always_scan = 0
|
||||
always_scan = 1
|
||||
|
||||
#
|
||||
# process_m3u
|
||||
|
||||
@@ -74,14 +74,26 @@ Section -Pre
|
||||
lbl_stop_service:
|
||||
DetailPrint "Stopping Service..."
|
||||
nsSCM::Stop "${PRODUCT_NAME}"
|
||||
Sleep 3000
|
||||
|
||||
lbl_wait_stop:
|
||||
Sleep 200
|
||||
nsSCM::QueryStatus "${PRODUCT_NAME}"
|
||||
Pop $0
|
||||
Pop $1
|
||||
|
||||
StrCmp $0 "success" lbl_check_status
|
||||
goto lbl_continue
|
||||
|
||||
lbl_check_status:
|
||||
IntCmp $1 1 lbl_continue lbl_wait_stop lbl_wait_stop
|
||||
|
||||
lbl_continue:
|
||||
; should really loop until service stops...
|
||||
DetailPrint "Service is stopped..."
|
||||
|
||||
!include WinMessages.nsh
|
||||
FindWindow $0 "" "Configuration"
|
||||
SendMessage $0 ${WM_CLOSE} 0 0
|
||||
FindWindow $0 "" "Firefly Config"
|
||||
SendMessage $0 ${WM_USER} 0 0
|
||||
nsSCM::QueryStatus "Bonjour Service"
|
||||
Pop $0
|
||||
Pop $1
|
||||
@@ -159,6 +171,11 @@ Section "MainSection" SEC01
|
||||
HasConf:
|
||||
WriteINIStr "$2\mt-daapd.conf" "plugins" "plugin_dir" "plugins"
|
||||
WriteINIStr "$2\mt-daapd.conf" "plugins" "plugins" "rsp.dll,w32-event.dll"
|
||||
ReadINIStr $0 "$2\mt-daapd.conf" "general" "rescan_interval"
|
||||
StrCmp $0 "" rescan_set rescan_skip
|
||||
rescan_set:
|
||||
WriteINIStr "$2\mt-daapd.conf" "general" "rescan_interval" "600"
|
||||
rescan_skip:
|
||||
SetAutoClose False
|
||||
SectionEnd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user