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

Close

#106 Additional Nodes Placed into Database

MediaTomb 0.8.1
closed
Jin
5
2012-01-23
2012-01-19
chris
No

The Following script for Audio importation

function addAudio(obj)
{
// first gather data
var title = obj.meta[M_TITLE] || obj.title;
var description = obj.meta[M_DESCRIPTION] || 'Unknown';
var genre = obj.meta[M_GENRE] || 'Unknown';
var album = obj.meta[M_ALBUM] || 'Unknown';
var artist = obj.meta[M_ARTIST] || 'Unknown';
var date = getYear(obj.meta[M_DATE]);
var desc = artist + ', ' + album + ',' + title + ', ' + date + ', ' + genre;
var chain = null;

obj.meta[M_DESCRIPTION] = description;

if (!description) obj.meta[M_DESCRIPTION] = desc;
chain = new Array('Artists', artist, album);
addCdsObject(obj, createContainerChain(chain));
chain = new Array('Genres', genre, artist);
addCdsObject(obj, createContainerChain(chain));
}

For the Genres Object it does not have a Genre --- (rock, etcc.) --- Led Zeplin layout when I look in the UI or in the database.
It adds "All Audio" and "Year" even though I do not specify them in the above script. The nodes I do specify above are not laid out like I specify.

Discussion

  • chris
    chris
    2012-01-23

    • status: open --> closed
     
  • chris
    chris
    2012-01-23

    Documentation error...
    closing

     
  • chris
    chris
    2012-01-23

    Documentation error...
    closing