def get_items(self): try: dbfile = config.get_data_file("rhythmdb.xml", "rhythmbox") songs = rhythmbox_support.get_rhythmbox_songs(dbfile=dbfile) except StandardError, e: self.output_error(e) songs = []
def get_items(self): # first try to load songs via dbus songs = list(_get_all_songs_via_dbus()) if not songs: try: dbfile = config.get_data_file("rhythmdb.xml", "rhythmbox") songs = rhythmbox_support.get_rhythmbox_songs(dbfile=dbfile) except StandardError, e: self.output_error(e) songs = []