Very basic playlist support

This commit is contained in:
Thomas Perl 2014-12-17 22:40:06 +01:00
parent 63518483a3
commit 77b24d58cb
6 changed files with 149 additions and 0 deletions

View file

@ -62,6 +62,13 @@ ListModel {
});
}
function forEachEpisode(callback) {
// Go from bottom up (= chronological order)
for (var i=count-1; i>=0; i--) {
callback(get(i));
}
}
function setQueryIndex(index) {
currentFilterIndex = index;
py.call('main.set_config_value', ['ui.qml.episode_list.filter_eql', filters[currentFilterIndex].query]);