Skip to content

Commit

Permalink
Disable Plex & Emby In Upgrade, ajax bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerothen committed Apr 9, 2017
1 parent d3a3e29 commit 5cea944
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
case 'plex-streams':
echo getPlexStreams(12);
break;
case 'emby-streams':
case 'emby-recent':
echo getEmbyRecent($_GET['type'], 12);
break;
case 'plex-streams':
case 'plex-recent':
echo getPlexRecent($_GET['type'], 12);
break;

Expand Down
10 changes: 10 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,16 @@ function upgradeCheck() {
$config['user_home'] = $config['databaseLocation'].'users/';
unset($config['databaseLocation']);

// Turn Off Emby And Plex Recent
$config["plexRecentMovie"] = "false";
$config["plexRecentTV"] = "false";
$config["plexRecentMusic"] = "false";
$config["plexPlayingNow"] = "false";
$config["embyRecentMovie"] = "true";
$config["embyRecentTV"] = "true";
$config["embyRecentMusic"] = "false";
$config["embyPlayingNow"] = "true";

$createConfigSuccess = createConfig($config, 'config/config.php', $nest = 0);

// Create new config
Expand Down

0 comments on commit 5cea944

Please sign in to comment.