diff --git a/bin/www b/bin/www index 957c9a6..015a6e5 100755 --- a/bin/www +++ b/bin/www @@ -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 diff --git a/routes/show.js b/routes/show.js index 0cb20a8..d938d80 100644 --- a/routes/show.js +++ b/routes/show.js @@ -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