Skip to content

Commit

Permalink
very clumsy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Jan 2, 2016
1 parent efb40a2 commit bca1e2f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Player/components/Settings.react.js
Expand Up @@ -64,7 +64,7 @@ default React.createClass({
defaultPort: ls('peerPort'),
defaultPeers: ls('maxPeers'),
downloadFolder: ls('downloadFolder') ? ls('downloadFolder') : 'Temp',
bufferSize: (parseInt(ls('bufferSize') / 1000).toFixed(1),
bufferSize: parseInt(ls('bufferSize') / 1000).toFixed(1),
speedPulsing: ls('speedPulsing') ? ls('speedPulsing') : 'disabled',
subEncodings: [
['Auto Detect', 'auto'],
Expand Down
6 changes: 3 additions & 3 deletions src/components/Player/store.js
Expand Up @@ -327,7 +327,7 @@ class playerStore {
foundTrakt: true
});

var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : false;
var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : true : false;
if (shouldScrobble) {
if (!ls.isSet('playerNotifs') || ls('playerNotifs'))
player.notifier.info('Scrobbling', '', 6000);
Expand Down Expand Up @@ -702,7 +702,7 @@ class playerStore {
var itemDesc = this.itemDesc();
if (itemDesc.setting && itemDesc.setting.trakt && !this.foundTrakt) {
newObj.foundTrakt = true;
var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : false;
var shouldScrobble = traktUtil.loggedIn ? ls.isSet('traktScrobble') ? ls('traktScrobble') : true : false;
if (shouldScrobble) {
traktUtil.handleScrobble('start', itemDesc, this.wcjs.position);
if (!ls.isSet('playerNotifs') || ls('playerNotifs'))
Expand Down Expand Up @@ -751,7 +751,7 @@ class playerStore {
if (!ls.isSet('playerNotifs') || ls('playerNotifs'))
player.notifier.info('Found Subtitles', '', 6000);

if (!ls.isSet('autoSub') || ls('autoSub'))
if (!ls.isSet('autoSub') || ls('autoSub')) {
if (ls('lastLanguage') && ls('lastLanguage') != 'none') {
if (subs[ls('lastLanguage')]) {
playerActions.loadSub(subs[ls('lastLanguage')]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Player/utils/trakt.js
Expand Up @@ -69,7 +69,7 @@ trakt.logOut = () => {
// @param type = 'movie' or 'episode';
trakt.scrobble = (state, percent, obj) => {

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

Expand Down

0 comments on commit bca1e2f

Please sign in to comment.