Hide File Extentions

Doug
2010-12-13
2013-05-30
  • Doug
    Doug
    2010-12-13

    How can I hide the file extensions on video in MediaTomb? I am streaming to the PS3.

    Thanks.

     
  • Blue Emu
    Blue Emu
    2011-01-06

    I installed mediatomb recently and ran into the same thing. You can handle this with a change to the import script. In my case I have nicely formated titles in the metadata of mp4 files. Therefore I wanted to use the mp4 metadata when it exists, but use the filename (without the extension) when there is no title in the metadata.

    Adding this to addVideo() in import.js seems to work:

        var title = obj.meta[M_TITLE];
        if (title)
        {
            obj.title = title;
        }
        else
        {
            obj.title = obj.title.substr(0,obj.title.lastIndexOf(".")) || obj.title;
        }