2015-09-14 12:20:08 -04:00
|
|
|
/*
|
|
|
|
|
|
|
|
Chercher votre fichier de base de données plex, grace à ces indications:
|
|
|
|
|
|
|
|
Windows Vista, Server 2008, Server 2008 R2, WHS 2011, Windows 7, Windows 8:
|
2015-09-15 11:21:39 -04:00
|
|
|
C:\\Users\\yourusername\\AppData\\Local\\Plex Media Server\\Plug-in\ Support\\Databases\\com.plexapp.plugins.library.db
|
2015-09-14 12:20:08 -04:00
|
|
|
|
|
|
|
Mac OS X:
|
|
|
|
~/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db
|
|
|
|
|
|
|
|
Windows XP, Server 2003, ou Home Server:
|
|
|
|
C:\Documents and Settings\yourusername\Local Settings\Application Data\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db
|
|
|
|
|
2015-09-14 14:50:39 -04:00
|
|
|
Docker
|
|
|
|
/home/username/plex-config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db
|
2015-09-14 12:20:08 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = {
|
2015-09-14 14:50:39 -04:00
|
|
|
database: "/home/antoine/plex-config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db",
|
2015-09-14 12:20:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
init_db: function(){
|
|
|
|
var sqlite3 = require('sqlite3').verbose();
|
|
|
|
var db = new sqlite3.Database(this.database);
|
|
|
|
return db;
|
|
|
|
}
|
|
|
|
};
|