Menu

How to add a folder on startup ?

bigapple
2017-12-27
2018-01-06
  • bigapple

    bigapple - 2017-12-27

    Hello,

    I use a DLink NAS with Mediatomb, using ffp, and I can't manage to add more than a folder in the database at the startup.

    Here is my mediatomb.sh


    echo 'Removing db'
    mv /mnt/HD/HDa2/ffp/var/mediatomb/mediatomb.db /mnt/HD/HDa2/ffp/var/mediatomb/mediatomb.db.old
    . /ffp/etc/ffp.subr

    mediadir="/mnt/HD/HDa2/Freebox"

    name="mediatomb"
    command="/ffp/bin/$name"
    mediatombflags="-d --interface egiga0 --home /ffp/var --cfgdir mediatomb --add $mediadir"

    runrccommand "$1"


    Currently, mediatomb has in its database the /mnt/HD/HDa2/Freebox directory, which contains my movies, and it works fine.
    My problem is that I added a second hard drive in my NAS, with the following existing mounted disk dir :

    /mnt/HD/HDb2/Freebox2, which contains more movies...

    How do I need to modify my mediatomb.sh to have
    /mnt/HD/HDa2/Freebox
    /mnt/HD/HDb2/Freebox2
    available in database ?

    I tried many things, even with GUI interface, but nothing worked...
    Thanks by advance !

     
  • Thev00d00

    Thev00d00 - 2018-01-06

    You can have multiple "-a /path/to/thing" and it will work.

    A better approach is to the put the paths into your config file.

    Or add them via the UI into the DB as autoscan paths.

    Also mediatomb is dead. Use Gerbera (https://gerbera.io) instead.

     

Log in to post a comment.