diff --git a/config.js_example b/config.js_example index 9269905..b4a443c 100644 --- a/config.js_example +++ b/config.js_example @@ -18,6 +18,8 @@ Docker module.exports = { database: "/home/antoine/plex-config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db", + presentation: "
Merci de respecter mon upload...
", + init_db: function(){ var sqlite3 = require('sqlite3').verbose(); diff --git a/routes/index.js b/routes/index.js index e70aa93..3c5b267 100644 --- a/routes/index.js +++ b/routes/index.js @@ -24,7 +24,7 @@ router.get('/', function(req, res, next) { }, //aprés toute les opération de la base function() { - res.render('index', { title: 'Liste des channel',channels: data }); + res.render('index', { title: 'Liste des channel',channels: data, presentation: config.presentation }); }); }); diff --git a/views/index.jade b/views/index.jade index c0d9f6d..e225744 100644 --- a/views/index.jade +++ b/views/index.jade @@ -1,6 +1,10 @@ extends layout block content + + if(presentation != '') + !{presentation} + h1= title ul