parseInt on lag comp

This commit is contained in:
Sam 2018-07-15 18:10:36 +10:00
parent 619cecf660
commit f72667754d
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ export default {
if (isNaN(user.time) || user.time === 0 || !user.time) { if (isNaN(user.time) || user.time === 0 || !user.time) {
return this.getTimeFromMs(0) return this.getTimeFromMs(0)
} }
return this.getTimeFromMs(user.time + this.difference) return this.getTimeFromMs(parseInt(user.time) + parseInt(this.difference))
}, },
getMax: function (user) { getMax: function (user) {
if (isNaN(user.maxTime)) { if (isNaN(user.maxTime)) {

View File

@ -57,7 +57,7 @@ module.exports = function PlexAuth () {
'X-Plex-Product': 'SyncLounge', 'X-Plex-Product': 'SyncLounge',
'X-Plex-Device-Vendor': sBrowser, 'X-Plex-Device-Vendor': sBrowser,
'X-Plex-Platform-Version': '11.0', 'X-Plex-Platform-Version': '11.0',
'Accept': 'application/json', Accept: 'text/xml,application/xml',
'X-Plex-Http-Pipeline': 'infinite', 'X-Plex-Http-Pipeline': 'infinite',
'X-Plex-Token': token 'X-Plex-Token': token
}, },