providers/cinemeta.js
function indexEntry(entry) {
    if (entry.year) entry.year = parseInt(entry.year.toString().split("-")[0]); // first year for series
    var n = helpers.simplifyName(entry);
    if (!meta[n]) meta[n] = [];
    meta[n].push(entry);
    byImdb[entry.imdb_id] = entry;
}
function indexEntry(entry) {
    if (entry.year) entry.year = parseInt(entry.year.toString().split("-")[0]); // first year for series
    var n = helpers.simplifyName(entry);
    if (!meta[n]) meta[n] = [];
    meta[n].push(entry);
    byImdb[entry.imdb_id] = entry;
}
function indexEntry ( entry ) { if ( entry . year ) entry . year = parseInt ( entry . year . toString ( ) . split ( "-" ) [ 0 ] ) ; // first year for series var n = helpers . simplifyName ( entry ) ; if ( ! meta [ n ] ) meta [ n ] = [ ] ; meta [ n ] . push ( entry ) ; byImdb [ entry . imdb_id ] = entry ; }
Index entry in our in-mem index
Index entry in our in - mem index