diff --git a/apps/__tests__/apps.test.ts b/apps/__tests__/apps.test.ts index 5a26e48b..fcb591d5 100644 --- a/apps/__tests__/apps.test.ts +++ b/apps/__tests__/apps.test.ts @@ -28,10 +28,14 @@ const getAppConfigs = (): AppConfig[] => { if (fs.existsSync(path)) { const configFile = fs.readFileSync(path).toString(); - const config: AppConfig = JSON.parse(configFile); - if (config.available) { - apps.push(config); + try { + const config: AppConfig = JSON.parse(configFile); + if (config.available) { + apps.push(config); + } + } catch (e) { + console.error("Error parsing config file", app); } } }); diff --git a/apps/tautulli/config.json b/apps/tautulli/config.json index b0d1c64b..e502b183 100644 --- a/apps/tautulli/config.json +++ b/apps/tautulli/config.json @@ -1,13 +1,12 @@ { - "name": "Tautulli", - "available": true, - "port": 8181, - "id": "tautulli", - "description": "Tautulli is a 3rd party application that you can run alongside your Plex Media Server to monitor activity and track various statistics. Most importantly, these statistics include what has been watched, who watched it, when and where they watched it, and how it was watched. The only thing missing is "why they watched it", but who am I to question your 42 plays of Frozen. All statistics are presented in a nice and clean interface with many tables and graphs, which makes it easy to brag about your server to everyone else.", - "short_desc": "A Python based monitoring and tracking tool for Plex Media Server.", - "author": "JonnyWong16", - "source": "https://github.com/Tautulli/Tautulli", - "image": "https://tautulli.com/images/logo-circle.png", - "form_fields": {} - } - \ No newline at end of file + "name": "Tautulli", + "available": true, + "port": 8181, + "id": "tautulli", + "description": "Tautulli is a 3rd party application that you can run alongside your Plex Media Server to monitor activity and track various statistics. Most importantly, these statistics include what has been watched, who watched it, when and where they watched it, and how it was watched. The only thing missing is \"why they watched it\", but who am I to question your 42 plays of Frozen. All statistics are presented in a nice and clean interface with many tables and graphs, which makes it easy to brag about your server to everyone else.", + "short_desc": "A Python based monitoring and tracking tool for Plex Media Server.", + "author": "JonnyWong16", + "source": "https://github.com/Tautulli/Tautulli", + "image": "https://tautulli.com/images/logo-circle.png", + "form_fields": {} +}