Minidlna server only appearing after restart

Solution 1:

The notify_interval option in /etc/minidlna.conf should be changed to a lower value as the default is 900 seconds, so that every 15 minutes minidlna sends a multicast advertisement.

That is too long time to wait for the TV to start seeing your files, so I set a 30 seconds interval instead:

sudo nano /etc/minidlna.conf
notify_interval=30