Beispiel #1
0
	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 = []
Beispiel #2
0
 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 = []
Beispiel #3
0
 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 = []
Beispiel #4
0
 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 = []