Skip to content

Commit bca1e2f

Browse files
committed
very clumsy
1 parent efb40a2 commit bca1e2f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Player/components/Settings.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ default React.createClass({
6464
defaultPort: ls('peerPort'),
6565
defaultPeers: ls('maxPeers'),
6666
downloadFolder: ls('downloadFolder') ? ls('downloadFolder') : 'Temp',
67-
bufferSize: (parseInt(ls('bufferSize') / 1000).toFixed(1),
67+
bufferSize: parseInt(ls('bufferSize') / 1000).toFixed(1),
6868
speedPulsing: ls('speedPulsing') ? ls('speedPulsing') : 'disabled',
6969
subEncodings: [
7070
['Auto Detect', 'auto'],

src/components/Player/store.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class playerStore {
327327
foundTrakt: true
328328
});
329329

330-
var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : false;
330+
var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : true : false;
331331
if (shouldScrobble) {
332332
if (!ls.isSet('playerNotifs') || ls('playerNotifs'))
333333
player.notifier.info('Scrobbling', '', 6000);
@@ -702,7 +702,7 @@ class playerStore {
702702
var itemDesc = this.itemDesc();
703703
if (itemDesc.setting && itemDesc.setting.trakt && !this.foundTrakt) {
704704
newObj.foundTrakt = true;
705-
var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : false;
705+
var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : true : false;
706706
if (shouldScrobble) {
707707
traktUtil.handleScrobble('start', itemDesc, this.wcjs.position);
708708
if (!ls.isSet('playerNotifs') || ls('playerNotifs'))
@@ -751,7 +751,7 @@ class playerStore {
751751
if (!ls.isSet('playerNotifs') || ls('playerNotifs'))
752752
player.notifier.info('Found Subtitles', '', 6000);
753753

754-
if (!ls.isSet('autoSub') || ls('autoSub'))
754+
if (!ls.isSet('autoSub') || ls('autoSub')) {
755755
if (ls('lastLanguage') && ls('lastLanguage') != 'none') {
756756
if (subs[ls('lastLanguage')]) {
757757
playerActions.loadSub(subs[ls('lastLanguage')]);

src/components/Player/utils/trakt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ trakt.logOut = () => {
6969
// @param type = 'movie' or 'episode';
7070
trakt.scrobble = (state, percent, obj) => {
7171

72-
var shouldScrobble = trakt.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : false;
72+
var shouldScrobble = trakt.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : true : false;
7373
if (shouldScrobble) {
7474
// console.log('scrobble: '+state+' - '+percent);
7575

0 commit comments

Comments
 (0)