Commit 823e9c32 authored by Marinus Schraal's avatar Marinus Schraal

grilo: Remove unneeded tracker source check

With the previous changes to only populating views when tracker is
available, these checks become unneeded.
parent 0faaeea7
......@@ -236,21 +236,15 @@ class Grilo(GObject.GObject):
@log
def populate_artists(self, offset, callback, count=-1):
if self.tracker:
self.populate_items(
Query.all_artists(), offset, callback, count)
self.populate_items(Query.all_artists(), offset, callback, count)
@log
def populate_albums(self, offset, callback, count=-1):
if self.tracker:
self.populate_items(
Query.all_albums(), offset, callback, count)
self.populate_items(Query.all_albums(), offset, callback, count)
@log
def populate_songs(self, offset, callback, count=-1):
if self.tracker:
self.populate_items(
Query.all_songs(), offset, callback, count)
self.populate_items(Query.all_songs(), offset, callback, count)
@log
def populate_playlists(self, offset, callback, count=-1):
......@@ -260,9 +254,7 @@ class Grilo(GObject.GObject):
:param function callback: callback function
:param int count: limit number of results
"""
if self.tracker:
self.populate_items(
Query.all_playlists(), offset, callback, count)
self.populate_items(Query.all_playlists(), offset, callback, count)
@log
def populate_user_playlists(self, offset, callback, count=-1):
......@@ -272,9 +264,8 @@ class Grilo(GObject.GObject):
:param function callback: callback function
:param int count: limit number of results
"""
if self.tracker:
self.populate_items(
Query.all_user_playlists(), offset, callback, count)
self.populate_items(
Query.all_user_playlists(), offset, callback, count)
@log
def populate_album_songs(self, album, callback, count=-1):
......@@ -290,9 +281,8 @@ class Grilo(GObject.GObject):
@log
def populate_playlist_songs(self, playlist, callback, count=-1):
if self.tracker:
self.populate_items(
Query.playlist_songs(playlist.get_id()), 0, callback, count)
self.populate_items(
Query.playlist_songs(playlist.get_id()), 0, callback, count)
@log
def populate_custom_query(self, query, callback, count=-1, data=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment