I have a problem with tvheadend not seeing the recordings.
I have the system booting from SD-Card, the recordings are on a USB HDD.
I suppose the mounting of the volume happens after tvheadend is started.
I was able to solve this issue by setting a Delay of 10s in Tvheadend Addon-Settings.
Now the next problem is that I have to restart the Tvheadend HTSP Client
I can’t find an option for startup delay.
Is there another way to get this working?
You can set a delay in coreelec-network settings.
/edit: i see you already set a value.This makes kodi start after network becomes active and should fix it. Try to increase the number of seconds kodi should wait for network.
cp /usr/lib/systemd/system/kodi-autostart.service /storage/.config/system.d
and edit file /storage/.config/system.d/kodi-autostart.service
But I doubt this would work because autostart will be just skipped.
Put this in autostart.sh and it will delay starting kodi until path exist. Or 15 sec max.
cnt=1
while [ $cnt -lt 15 ]; do
if [ -d /var/media/USBHDD/recordings ]; then
sleep 2
break
fi
let cnt=cnt+1
sleep 1
done
Also create folder /storage/.kodi/addons/driver.dvb.delay_mount/bin and create file /storage/.kodi/addons/driver.dvb.delay_mount/bin/userspace-driver.sh with content
cnt=1
while [ $cnt -lt 15 ]; do
if [ -d /var/media/USBHDD/recordings ]; then
break
fi
let cnt=cnt+1
sleep 1
done
This will delay starting tvheadend addon until path exist.
One other option would be to restart PVR client from userspace-driver.sh.