Was wondering if minidlna has a feature to set an automatic rescan interval of the media library? Reason for asking is that my NAS does not support inotify. :(
If the feature exists, how do I enable it? And if not, could it be implemented?
Best regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It could be implemented eventually, but it's not high on the priority list. For you NAS, you could set up a cron job to stop minidlna, delete the database, then start minidlna again... say every night at 3AM or something.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
and put a line similar to this (you may need to edit the paths to the init script and the minidlna database):
0 8 * * * /etc/init.d/minidlna stop; rm -rf /tmp/minidlna; /etc/init.d/minidlna start
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Was wondering if minidlna has a feature to set an automatic rescan interval of the media library? Reason for asking is that my NAS does not support inotify. :(
If the feature exists, how do I enable it? And if not, could it be implemented?
Best regards
It could be implemented eventually, but it's not high on the priority list. For you NAS, you could set up a cron job to stop minidlna, delete the database, then start minidlna again... say every night at 3AM or something.
How do I delete the database?
Regards
rm -rf /tmp/minidlna
I'm a newbie when it comes to cron job.
How do I do just that jmaggard, but delete the datebase and restart at 8am instead of 3am ?
edit your crontab:
$ crontab -e
and put a line similar to this (you may need to edit the paths to the init script and the minidlna database):
0 8 * * * /etc/init.d/minidlna stop; rm -rf /tmp/minidlna; /etc/init.d/minidlna start
Nice 1, thanks!
I have the same problem. Could I run minidlna with rescan option instead of deleting database ?