debug show

This commit is contained in:
WEBER Antoine 2015-09-23 23:34:47 +02:00
parent 921e2e8dd4
commit 23b0328132
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ router.get('/:id', function(req, res, next) {
db.each("SELECT i.id as id, i.title as title, t.hints as hints, p.file as file, i.duration as second, t.size as size, i.year as year" db.each("SELECT i.id as id, i.title as title, t.hints as hints, p.file as file, i.duration as second, t.size as size, i.year as year"
+ " FROM media_items t, metadata_items i, media_parts p " + " FROM media_items t, metadata_items i, media_parts p "
+ " WHERE p.media_item_id=t.id AND t.metadata_item_id = i.id AND i.title != '' AND t.hints LIKE '%show=?%' " + " WHERE t.id=p.media_item_id AND t.metadata_item_id = i.id AND t.hints LIKE '%show=?%' "
,id, function(err, row) { ,id, function(err, row) {
console.log(err); console.log(err);
console.log(row); console.log(row);
@ -53,8 +53,8 @@ router.get('/:id', function(req, res, next) {
}, },
//aprés toute les opération de la base //aprés toute les opération de la base
function() { function() {
res.render('channel', { title: 'Liste des vidéos',channel:{ res.render('channel', { title: 'Episode de :'+id,channel:{
'name': "Liste de la série", 'name': 'Episode de :'+id,
'type': 2 'type': 2
},videos: data }); },videos: data });
}); });