metadata in video for PS3

Help
2011-01-07
2013-05-30
  • Björn Lundin
    Björn Lundin
    2011-01-07

    Hi!
    I'd like to see some metadata when browsing video in my ps3.
    I had a look in the docs, and for testing, I changed the addVideo of import.js like below.
    Restarted mediatomb AND the ps3, and reimported some films.
    But nothing changed, no metadata is displayed.
    Did I miss something completely here?
    When I browse my old mythtv-box, I get some metadata for video,
    so I'd like to reproduce that here…

    function addVideo(obj)
    {
        var chain = new Array('Video', 'All Video');
        addCdsObject(obj, createContainerChain(chain));
        var dir = getRootPath(object_root_path, obj.location);
        obj.meta[M_TITLE] = 'Test of M_TITLE';
        obj.meta[M_DESCRIPTION] = 'Test of M_DESCRIPTION';
        obj.meta[M_GENRE] = 'Test of M_GENRE';
        obj.meta[M_DATE] = 'Test of M_DATE';
        obj.meta[M_DIRECTOR] = 'Test of M_DIRECTOR';
        if (dir.length > 0)
        {
            chain = new Array('Video', 'Directories');
            chain = chain.concat(dir);
            addCdsObject(obj, createContainerChain(chain));
        }
    }
    

    root@risc:/# uname -a
    Linux risc 2.6.32.3-Pseries-bnl2 #3 SMP Wed Sep 29 19:37:48 UTC 2010 ppc64 POWER3 (630+) CHRP IBM,7044-170 GNU/Linux

    /Björn

     
  • Wim Van Dijck
    Wim Van Dijck
    2011-01-17

    Hi,

    I've been playing with this a bit today, and this seems to work:

    function addVideo(obj)
    {
        var genre = obj.meta[M_GENRE];
        if (!genre)
        {
            genre = 'Unknown';
        }
        var director = obj.meta[M_ARTIST];
        var year = obj.meta[M_DATE];
        var chain = new Array('Video', 'Genres', genre);
        addCdsObject(obj, createContainerChain(chain));
        if (year)
        {
        chain = new Array('Video', 'Year', year);
        addCdsObject(obj, createContainerChain(chain));
        }
        if (director)
        {
        chain = new Array('Video', 'Directors', director);
        addCdsObject(obj, createContainerChain(chain));
        }
        var dir = getRootPath(object_root_path, obj.location);
        if (dir.length > 0)
        {
            chain = new Array('Video', 'Directories');
            chain = chain.concat(dir);
            addCdsObject(obj, createContainerChain(chain));
        }
    }