Saturday, January 8, 2011

Setup Automatic Scan for MediaTomb

I did UNDO what I did below. Autoscan for MediaTomb is not working for me. It deletes items from the database.

1. Edit config.xml file

$ sudo gedit /etc/mediatomb/config.xml

Based on suggestions by a few people (see below for references), I have added to the config.xml the following (red part) between </scripting> and <mapping> tags at around line 62.

    <autoscan use-inotify="auto">
        <directory location="/home/<user>/video" mode="inotify" recursive="yes" hidden-files="no"/>

2. Then restart the server.

$ sudo /etc/init.d/mediatomb restart
 * Restarting upnp media server mediatomb     [OK] 

3. References.                                              

1 comment:

  1. yep, same here, i set it to autoscan but it only does the initial scan, then it will never update with the newly added files.