2012-06-28 17:16:50 PDT
I've set up an autoscan directory in the config.xml file on my Ubuntu (I think it's 10.10 or 11.10) on my local ext4 file system, thus:-
<directory location="/data/Films" mode="inotify" recursive="yes" hidden-files="no"/>
but it seems to be producing odd results. I cleared down the database of the old stuff that didn't seem to work, put that in the config then restarted.
The file structure for the video files is /data/Films/Film-name/Film-files so each is in its own directory under the Film directory.
Most of the files appeared, in the mediatomb web client, under DataBase-Video-Directories-Films-FilmDirName as I expected, but a few appeared under DataBase-Video-Directories-FilmDirName , so in their respective directories, but at the same level as the Films container rather than within the Films container. I moved (using mv in BASH) those problem directories off to another location, hoping the iNotify would remove them, so I could later move them back, but then something very odd happened. When I refreshed the web client a whole bunch of the other directory containers had moved from within DataBase-Video-Directories-Films to DataBase-Video-Directories .
Any idea why this happened? Should they all be under DataBase-Video-Directories-Films ? I also have separate "TV" and "Training Videos" directories I also want to autoscan, so the structure would hopefully be:-
Database
--Videos
----Directories
------Films
--------Film1
--------Film2
--------Film3
------TV
--------Show 1 Series 1
--------Show 1 Series 2
--------Show 2 Series 1
------Training Videos
--------Date 1
--------Date 2
but I wanted to start by getting the Films working. Is inotify too flaky to use, or is there something I've done wrong or missed out? I'd rather use inotify than a scheduled scan, if at all possible.
Cheers - MH