This commit is contained in:
WEBER Antoine 2015-09-24 00:10:01 +02:00
parent 04ae434870
commit 00952c81d7

View File

@ -68,12 +68,6 @@ router.get('/:id', function(req, res, next) {
});
row.info_meta = params;
//formattage des données
var tab = row.file.split('/');
var tab2 = tab[tab.length -1].split('\\');
var filename = tab2[tab2.length -1];
row.filename = filename;
if(typeof row.info_meta !== 'undefined' && typeof row.info_meta.season !== 'undefined' && typeof row.info_meta.episode !== 'undefined'){
row.season_episode = "S"+addZero(row.info_meta.season)+"E"+addZero(row.info_meta.episode);
}