예제 #1
0
 def finish_job(self):            
     self.emit("end")
     self.__set_status_icon("success")
     self.set_progress_ratio(1.0)
     try:
         gobject.source_remove(self.__updater_id)
     except: pass
     
     if self.trans_data["to_playlist"]:
         tags = {"uri" : utils.get_uri_from_path(self.output_path)}
         song = MediaDB.get_or_create_song(tags, "local", read_from_file=True)
         if song:
             Dispatcher.add_songs([song])
예제 #2
0
 def finish_job(self):            
     self.emit("end")
     self.__set_status_icon("success")
     self.set_progress_ratio(1.0)
     try:
         gobject.source_remove(self.__updater_id)
     except: pass
     
     if self.trans_data["to_playlist"]:
         tags = {"uri" : utils.get_uri_from_path(self.output_path)}
         song = MediaDB.get_or_create_song(tags, "local", read_from_file=True)
         if song:
             Dispatcher.add_songs([song])
 def emit_to_list(self, item):    
     songs = self.get_item_songs(item)
     Dispatcher.add_songs(songs)
예제 #4
0
 def emit_to_list(self, item):
     songs = self.get_item_songs(item)
     Dispatcher.add_songs(songs)
예제 #5
0
 def emit_to_playlist(self):
     if len(self.select_rows) > 0:
         songs = [self.items[index].get_song() for index in self.select_rows]
         Dispatcher.add_songs(songs)
예제 #6
0
 def emit_to_playlist(self):
     if len(self.select_rows) > 0:
         songs = [
             self.items[index].get_song() for index in self.select_rows
         ]
         Dispatcher.add_songs(songs)