From f72667754d934524fba99075825877571f800ed3 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 15 Jul 2018 18:10:36 +1000 Subject: [PATCH] parseInt on lag comp --- src/sidebar.vue | 2 +- src/store/modules/plex/helpers/PlexAuth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sidebar.vue b/src/sidebar.vue index c622880a..7a255d1f 100644 --- a/src/sidebar.vue +++ b/src/sidebar.vue @@ -268,7 +268,7 @@ export default { if (isNaN(user.time) || user.time === 0 || !user.time) { return this.getTimeFromMs(0) } - return this.getTimeFromMs(user.time + this.difference) + return this.getTimeFromMs(parseInt(user.time) + parseInt(this.difference)) }, getMax: function (user) { if (isNaN(user.maxTime)) { diff --git a/src/store/modules/plex/helpers/PlexAuth.js b/src/store/modules/plex/helpers/PlexAuth.js index b50aece0..7efd4b7b 100644 --- a/src/store/modules/plex/helpers/PlexAuth.js +++ b/src/store/modules/plex/helpers/PlexAuth.js @@ -57,7 +57,7 @@ module.exports = function PlexAuth () { 'X-Plex-Product': 'SyncLounge', 'X-Plex-Device-Vendor': sBrowser, 'X-Plex-Platform-Version': '11.0', - 'Accept': 'application/json', + Accept: 'text/xml,application/xml', 'X-Plex-Http-Pipeline': 'infinite', 'X-Plex-Token': token },