Translated comment to eng using g trans

This commit is contained in:
Nick Leffler
2017-09-27 09:09:25 -04:00
parent 6760ff6a7a
commit a9c80e1318
7 changed files with 12 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ router.get('/:id', function(req, res, next) {
}
}
//on fais toute les opération de base a la suite
//we do all the basic operations following
db.serialize(function() {
//db.run("CREATE TABLE if not exists user_info (info TEXT)");
@@ -47,7 +47,7 @@ router.get('/:id', function(req, res, next) {
data.push(row);
},
//aprés toute les opération de la base
//after all the operations of the database
function() {
res.render('channel', { title: 'List of videos',videos: data, channel: channel_info });
});

View File

@@ -42,7 +42,7 @@ router.get('/', function(req, res, next) {
var db = config.init_db();
/*var data = [];
//on fais toute les opération de base a la suite
//we do all the basic operations following
db.serialize(function() {
//db.run("CREATE TABLE if not exists user_info (info TEXT)");

View File

@@ -8,7 +8,7 @@ router.get('/', function(req, res, next) {
var db = config.init_db();
var data = [];
//on fais toute les opération de base a la suite
//we do all the basic operations following
db.serialize(function() {
//db.run("CREATE TABLE if not exists user_info (info TEXT)");
@@ -22,7 +22,7 @@ router.get('/', function(req, res, next) {
+ " FROM library_sections ORDER BY name ASC", function(err, row) {
data.push(row);
},
//aprés toute les opération de la base
//after all the operations of the database
function() {
res.render('index', { title: 'List of videos',channels: data, presentation: config.presentation });
});

View File

@@ -21,7 +21,7 @@ router.get('/:id/:incoming_chan', function(req, res, next) {
var db = config.init_db();
var data = [];
//on fais toute les opération de base a la suite
//we do all the basic operations following
db.serialize(function() {
db.each("SELECT episode.id as id, episode.title as titre, episode.[index] as episode, episode.duration as second, season.[index] as saison, show.title as serie "+
@@ -51,7 +51,7 @@ router.get('/:id/:incoming_chan', function(req, res, next) {
});
db.close(function(){
//aprés toute les opération de la base
//after all the operations of the database
var titre = "Série inexistante";
if(data.length > 0){
titre = 'Episode de '+data[0].serie;

View File

@@ -8,7 +8,7 @@ router.get('/:id', function(req, res, next) {
var shows = [];
//on fais toute les opération de base a la suite
//we do all the basic operations following
db.serialize(function() {
db.each("SELECT id, title, year"
@@ -17,7 +17,7 @@ router.get('/:id', function(req, res, next) {
,req.params.id, function(err, row) {
shows.push(row);
},
//aprés toute les opération de la base
//after all the operations of the database
function(){
console.log(shows);
res.render('show_list', { title: 'List of series',shows: shows, channel_id: req.params.id });