xbmc / chorus2

Official Kodi Web Interface
GNU General Public License v2.0
343 stars 116 forks source link

Ability to set default chorus settings #370

Open daniel1v opened 5 years ago

daniel1v commented 5 years ago

Feature suggestion

Ther should be the possipilty to edit and save the default Chorus settings on the server. For example:

Context

Everytime a new device / browser is used or the local Chorus settings cookie is deleted for any reason, the user has to configure all the Chorus settings from scratch. This is hard, if a user doesnt understand english (which is the default language), or isnt much into tech stuff. Additionally it is annoying and time consuming to configure the same thing on every single device for every single user. Therefore it would be very useful to have an ability to manipulate the server-side defaults which are loaded if there is no local cookie available.

Possible Implementation

A simple solution would be to use an xml file like the advancedsettings.xml, from which the settings are loaded. Advanced users should have no issues editing xml files via editor.

Also a button with "use current configuration as server default" could be added to the Chorus interface.

aaronroth commented 4 years ago

I would also really love to see this feature request implemented. I came across this request when searching for this kind of functionality with Chorus 2, and it seems that custom default settings for Chorus 2 is just not supported yet.

I wanted to add my voice here to hopefully draw more attention to this feature request.

My use case for this feature would be to eliminate all but a few menu items. I would like to share my media collection with my family via the Kodi web interface, but I do not want them to have access to anything but the "TV shows" and "Movies" menu items.

As OP daniel1v mentioned above, the changes can be made locally, but those settings do not persist if browser data is cleared or if the web interface is loaded with a new browser. I also agree that using an XML file to configure default Chorus 2 settings would be great.

DjZU commented 3 years ago

As a workaround I copied the webinterface.default folder to webinterface.custom, then tweak the ./addon.xml:

id="webinterface.custom" version="19.x-2.4.8-custom" name="Kodi web interface - Chorus2 - custom"

and the ./js/kodi-webinterface.js:

this.config = { "static": { appTitle: 'Kodi', jsonRpcEndpoint: 'jsonrpc', socketsHost: location.hostname, socketsPort: 9090, ajaxTimeout: 5000, connected: true, hashKey: 'kodi', defaultPlayer: 'local', ignoreArticle: true, pollInterval: 10000, reverseProxy: false, albumArtistsOnly: true, searchIndexCacheExpiry: 24 60 60, collectionCacheExpiry: 7 24 60 * 60, addOnsLoaded: false, vibrantHeaders: false, lang: "fr", kodiSettingsLevel: 'standard', playlistFocusPlaying: true, keyboardControl: 'kodi', disableThumbs: false, showDeviceName: false, refreshIgnoreNFO: true, largeBreakpoint: 910, apiKeyTMDB: '', apiKeyTVDB: '', apiKeyFanartTv: '', apiKeyYouTube: '' } };

nav.push({ id: 1, title: tr("Music"), path: 'music', icon: 'mdi-av-my-library-music', classes: 'nav-music', parent: 0 });

Restart Kodi, go to settings, activate the new extension and select it as the webserver. This way custom settings are persistent since the copy of the extension will not be erased across Kodi updates.