Now a plex ip address is dynamically passed into the plexrepository, fetched from the config

This commit is contained in:
2019-06-04 23:45:22 +02:00
parent 70f6497404
commit e3ed08e8dd
4 changed files with 11 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ const configuration = require('src/config/configuration').getInstance();
const TMDB = require('src/tmdb/tmdb');
const establishedDatabase = require('src/database/database');
const plexRepository = new PlexRepository();
const plexRepository = new PlexRepository(configuration.get('plex', 'ip'));
const cache = new Cache();
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));