Browse Source

Fix userWatchStats plugin settings types for save button functionality

- Changed settingsOption type from 'multiple-url' to 'url' for userWatchStatsURL
- Changed settingsOption type from 'multiple-api-key' to 'token' for userWatchStatsApikey
- Aligns with standard types used by other working plugins (Emby, etc.)
- Fixes missing save button issue in plugin settings interface
- Uses unique config variable names to prevent conflicts with Tautulli plugin
mgomon 8 months ago
parent
commit
c9d46eef0b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/homepage/userWatchStats.php

+ 2 - 2
api/homepage/userWatchStats.php

@@ -32,8 +32,8 @@ trait HomepageUserWatchStats
                         ['name' => 'Emby', 'value' => 'emby'],
                         ['name' => 'Jellyfin', 'value' => 'jellyfin']
                     ]]),
-                    $this->settingsOption('multiple-url', 'userWatchStatsURL'),
-                    $this->settingsOption('multiple-api-key', 'userWatchStatsApikey'),
+                    $this->settingsOption('url', 'userWatchStatsURL'),
+                    $this->settingsOption('token', 'userWatchStatsApikey'),
                     $this->settingsOption('disable-cert-check', 'userWatchStatsDisableCertCheck'),
                     $this->settingsOption('use-custom-certificate', 'userWatchStatsUseCustomCertificate'),
                 ],