Dispatch queue #94

Merged
merged 2 commits into from Apr 11, 2013
Commits on Apr 9, 2013
  1. Add simulate scrobble setting

    nate1280 committed Apr 9, 2013
    Add simulate scrobble setting for testing.
Commits on Apr 10, 2013
  1. Implement queue for dispatch events

    nate1280 committed Apr 9, 2013
    Implement queue for dispatch events, should resolve race conditions that can occur.
    Dispatch queue is acted upon every cycle and cleared.
    Add check for xbmc playing video when doing update() from service thread.
    Remove old check for switching videos in a playlist in scrobbler class.
    Small change to rating check, perform the setting check before anything else.
    Change how updating time is handled, only update if the current playlist index is the same as what was seen when playback started.
    In traktPlayer, save playlist index in onPlayBackStarted to variable.
    In traktPlayer, onPlayBackStarted, check current playlist index to saved index if playlist length is greater then 1, if it is, fire an onPlayBackEnded event.
    Add some more debug lines to help in testing playlist playback.