debug show
This commit is contained in:
parent
377c48a430
commit
813b9e1ed4
1
bin/www
1
bin/www
@ -18,6 +18,7 @@
|
|||||||
// Replace the dead worker, we're not sentimental
|
// Replace the dead worker, we're not sentimental
|
||||||
console.log('Worker ' + worker.id + ' died :(');
|
console.log('Worker ' + worker.id + ' died :(');
|
||||||
cluster.fork();
|
cluster.fork();
|
||||||
|
console.log('Remplacement du worker ');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Code to run if we're in a worker process
|
// Code to run if we're in a worker process
|
||||||
|
@ -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"
|
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 t.id=p.media_item_id AND t.metadata_item_id = i.id AND t.hints LIKE '%show=?%' "
|
+ " WHERE p.media_item_id=t.id AND t.metadata_item_id = i.id AND t.hints = '%Walkin%' "
|
||||||
,req.params.id, function(err, row) {
|
+ " ORDER BY i.title ASC",req.params.id, function(err, row) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
console.log(row);
|
console.log(row);
|
||||||
//découpage des hints
|
//découpage des hints
|
||||||
|
Loading…
x
Reference in New Issue
Block a user