2019-09-26, 19:45
I didn't read the whole thread, maybe someone asked. What benefit is there to this > just having a separate video db for each user. They don't eat up much space / compute power to access them all at the same time. I currently just run 2, main for the wife and i in the living room / master bedroom, and a guest room video db. We all share the same music db. Both video dbs pull from the same nfs share. This is done by the video db name in advancedsettings.xml. They all access kodi with the same sql user.
Just seems I'm missing the point? Or misread and I'm already doing this?
Scans are done automatically as stuff is added to the libraries.
Just seems I'm missing the point? Or misread and I'm already doing this?
Code:
lib_watch() {
inotifywait -m -r "$POOLLOC"/"$1"/ -e create | while read FILE ; do
KODICLIENTS=$(grep kodi /etc/dhcp/ltsp.dhcpd.conf | awk '{print $2}')
kodi-send --action "UpdateLibrary(${1})"
sleep 30
for client in $KODICLIENTS ; do
if ping -c 1 "$client" ; then
ssh "$client" "kodi-send --action \"UpdateLibrary(${1})\""
fi
done
done
}
for library in video music ; do
lib_watch "$library" &
done
Scans are done automatically as stuff is added to the libraries.