This commit is contained in:
UKDTOM 2021-01-13 12:37:00 +01:00
parent 115105157b
commit 5447366d00
2 changed files with 2 additions and 3 deletions

View file

@ -33,7 +33,8 @@ const wtutils = new class WTUtils {
"X-Plex-Client-Identifier": this.X_Plex_Client_Identifier,
"X-Plex-Product": this.AppName,
"X-Plex-Version": this.AppVersion,
"X-Plex-Device": this.Platform
"X-Plex-Device": this.Platform,
"Accept-Language": wtconfig.get('General.language')
}
return headers
}

View file

@ -53,8 +53,6 @@ const actions = {
async fetchPMSSettings({ commit }, payload) {
let header = wtutils.PMSHeader;
header['X-Plex-Token'] = payload.Token;
header['Accept-Language'] = wtconfig.get('General.language');
const url = payload.Address + '/:/prefs';
await axios({
method: 'get',