|
|
@@ -49,7 +49,7 @@ function organizrSpecialSettings()
|
|
|
)
|
|
|
),
|
|
|
'media' => array(
|
|
|
- 'jellyfin' => (strpos($GLOBALS['embyURL'], 'jellyfin') !== false) ? true : false
|
|
|
+ 'jellyfin' => $GLOBALS['homepageJellyfinInstead']
|
|
|
)
|
|
|
),
|
|
|
'sso' => array(
|
|
|
@@ -739,7 +739,7 @@ function getSettingsMain()
|
|
|
'type' => 'password-alt',
|
|
|
'name' => 'embyToken',
|
|
|
'class' => 'embyAuth switchAuth',
|
|
|
- 'label' => 'Emby/Jellyin Token',
|
|
|
+ 'label' => 'Emby/Jellyfin Token',
|
|
|
'value' => $GLOBALS['embyToken'],
|
|
|
'placeholder' => ''
|
|
|
),
|
|
|
@@ -2688,10 +2688,10 @@ function importUserButtons()
|
|
|
if (!empty($GLOBALS['plexToken'])) {
|
|
|
$buttons .= '<button class="btn m-b-20 m-r-20 bg-plex text-muted waves-effect waves-light importUsersButton" onclick="importUsers(\'plex\')" type="button"><span class="btn-label"><i class="mdi mdi-plex"></i></span><span lang="en">Import Plex Users</span></button>';
|
|
|
}
|
|
|
- if (!empty($GLOBALS['embyURL']) && !empty($GLOBALS['embyToken']) && (strpos($GLOBALS['embyURL'], 'jellyfin') !== false)) {
|
|
|
+ if (!empty($GLOBALS['embyURL']) && !empty($GLOBALS['embyToken']) && ($GLOBALS['homepageJellyfinInstead'])) {
|
|
|
$buttons .= '<button class="btn m-b-20 m-r-20 bg-primary text-muted waves-effect waves-light importUsersButton" onclick="importUsers(\'jellyfin\')" type="button"><span class="btn-label"><i class="mdi mdi-fish"></i></span><span lang="en">Import Jellyfin Users</span></button>';
|
|
|
}
|
|
|
- if (!empty($GLOBALS['embyURL']) && !empty($GLOBALS['embyToken']) && (strpos($GLOBALS['embyURL'], 'jellyfin') === false)) {
|
|
|
+ if (!empty($GLOBALS['embyURL']) && !empty($GLOBALS['embyToken']) && (!$GLOBALS['homepageJellyfinInstead'])) {
|
|
|
$buttons .= '<button class="btn m-b-20 m-r-20 bg-emby text-muted waves-effect waves-light importUsersButton" onclick="importUsers(\'emby\')" type="button"><span class="btn-label"><i class="mdi mdi-emby"></i></span><span lang="en">Import Jellyfin Users</span></button>';
|
|
|
}
|
|
|
return ($buttons !== '') ? $buttons : $emptyButtons;
|