Skip to content

Instantly share code, notes, and snippets.

View vrutkovs's full-sized avatar
🙈
Not my cluster, not my FIRING

Vadim Rutkovsky vrutkovs

🙈
Not my cluster, not my FIRING
View GitHub Profile
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()
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);