Przeglądaj źródła

started work on ombi

causefx 8 lat temu
rodzic
commit
d514a4ba28

+ 5 - 0
api/config/default.php

@@ -29,6 +29,7 @@ return array(
     'plexID' => '',
     'tautulliURL' => '',
     'ombiURL' => '',
+    'ombiToken' => '',
     'ssoPlex' => false,
     'ssoOmbi' => false,
     'ssoTautulli' => false,
@@ -87,6 +88,10 @@ return array(
     'homepagePlexAuth' => '1',
     'homepageEmbyEnabled' => false,
     'homepageEmbyAuth' => '1',
+    'homepageOmbiEnabled' => false,
+    'homepageOmbiAuth' => '1',
+    'ombiLimitUser' => false,
+    'ombiRefresh' => '600000',
     'homepageOrdercustomhtml' => '1',
 	'homepageOrdernotice' => '2',
 	'homepageOrderplexsearch' => '3',

+ 53 - 0
api/functions/homepage-functions.php

@@ -1281,6 +1281,59 @@ function getHomepageList(){
                     )
                 )
             )
+        ),
+		array(
+            'name' => 'Ombi',
+            'enabled' => false,
+            'image' => 'plugins/images/tabs/ombi.png',
+            'category' => 'Requests',
+            'settings' => array(
+                'Enable' => array(
+                    array(
+                        'type' => 'switch',
+                        'name' => 'homepageOmbiEnabled',
+                        'label' => 'Enable',
+                        'value' => $GLOBALS['homepageOmbiEnabled']
+                    ),
+                    array(
+                        'type' => 'select',
+                        'name' => 'homepageOmbiAuth',
+                        'label' => 'Minimum Authentication',
+                        'value' => $GLOBALS['homepageOmbiAuth'],
+                        'options' => $groups
+                    )
+                ),
+                'Connection' => array(
+                    array(
+                        'type' => 'input',
+                        'name' => 'ombiURL',
+                        'label' => 'URL',
+                        'value' => $GLOBALS['ombiURL'],
+                        'placeholder' => 'http(s)://hostname:port'
+                    ),
+                    array(
+                        'type' => 'password-alt',
+                        'name' => 'ombiToken',
+                        'label' => 'Token',
+                        'value' => $GLOBALS['ombiToken']
+                    )
+                ),
+                'Misc Options' => array(
+					array(
+                        'type' => 'switch',
+                        'name' => 'ombiLimitUser',
+                        'label' => 'Enable',
+                        'value' => $GLOBALS['ombiLimitUser']
+                    ),
+                    array(
+                        'type' => 'select',
+                        'name' => 'ombiRefresh',
+                        'label' => 'Refresh Seconds',
+                        'value' => $GLOBALS['ombiRefresh'],
+                        'options' => $time
+                    )
+                )
+            )
         ),
 		array(
             'name' => 'CustomHTML-1',

+ 1 - 0
js/functions.js

@@ -2946,6 +2946,7 @@ function launch(){
 			serverOS:json.data.status.os,
 			phpVersion:json.data.status.php,
 			token:json.data.user.token,
+			user:json.data.user,
 			branch:json.branch,
 			sso:json.sso,
 			theme:json.theme,

Plik diff jest za duży
+ 0 - 0
plugins/bower_components/owl.carousel/owl.carousel.min.js


BIN
plugins/images/tabs/ombi.png


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików