debug show

This commit is contained in:
WEBER Antoine 2015-09-23 23:44:02 +02:00
parent 377c48a430
commit 813b9e1ed4
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@
// Replace the dead worker, we're not sentimental
console.log('Worker ' + worker.id + ' died :(');
cluster.fork();
console.log('Remplacement du worker ');
});
// Code to run if we're in a worker process

View File

@ -12,8 +12,8 @@ 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"
+ " FROM media_items t, metadata_items i, media_parts p "
+ " WHERE t.id=p.media_item_id AND t.metadata_item_id = i.id AND t.hints LIKE '%show=?%' "
,req.params.id, function(err, row) {
+ " WHERE p.media_item_id=t.id AND t.metadata_item_id = i.id AND t.hints = '%Walkin%' "
+ " ORDER BY i.title ASC",req.params.id, function(err, row) {
console.log(err);
console.log(row);
//découpage des hints