Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Configuration file directory setup

Help
2012-02-28
2013-05-30
  • JP Hellemons
    JP Hellemons
    2012-02-28

    Hi, I am having 'problems' with the folder structure.

    I would like to have a 'video' 'audio' 'photo' folder.
    so I use the <virtual-layout type="builtin">
    option. but then, my pictures is just a long list, instead of all the subfolders.

    so i also have this pc directory option.
    but then it looks like this:

    pc directory>folder>another folder>more folders>photos
    pc directory>folder>another folder>more folders>photos>photo set one
    pc directory>folder>another folder>more folders>photos>photo set two

    but I would like to have

    pc directory> photos>photo set one
    or
    photo's> photo set one
    (photo's by folder)

    same for audio, I have every CD in it's own folder
    please let me know what the best configuration option is for me.
    I have mediatomb running on a CH3SNas with the funplug so I don't think that javascript is compiled in that package.

    thanks in advance!
    best regards,
    JP

     
  • JP Hellemons
    JP Hellemons
    2012-02-28

    pc directory>folder>another folder>more folders>photos>photo set one

    is an example, the real path looks like:

    pc directory/mnt/HD_a2/shared/Photo's/Holiday winter 2012
    

    instead of :

    photo's/holiday winter 2012
    

    or

    pc directory/photo's/holiday winter 2012
    
     
  • gamicoulas
    gamicoulas
    2012-03-07

    The way I see it, you want to list just the folder of the photos.

    Add the following piece of code inside the addImage() function of your import.js

    var dir = getRootPath(object_root_path, obj.location);
        
    if (dir.length > 0)
    {
            chain = new Array('My Albums', dir[dir.length-1]);
            addCdsObject(obj, createContainerChain(chain), UPNP_CLASS_CONTAINER);
    }