This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TrackerWrapper: | |
class __TrackerWrapper: | |
def __init__(self): | |
self.tracker = Tracker.SparqlConnection.get(None) | |
def __str__(self): | |
return repr(self) | |
instance = None | |
def __init__(self): | |
if not TrackerWrapper.instance: | |
TrackerWrapper.instance = TrackerWrapper.__TrackerWrapper() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadNextTrack: function(){ | |
this.load_next_track_lock = true; | |
if (!this.playlist || !this.currentTrack || !this.playlist.iter_next(this.currentTrack)) { | |
if (RepeatType.ALL == this.repeat) { | |
this.currentTrack = this.playlist.get_iter_first()[1]; | |
} else { | |
this.currentTrack = null; | |
} | |
} else { | |
this.load( this.playlist.get_value( this.currentTrack, this.playlistField), false); |