Exemple #1
0
 def __init__(self, session, playlist, playlist_manager):
     #Initialize all instance vars
     self.__playlist = playlist
     self.__playlist_manager = playlist_manager
     self.__checker = BulkConditionChecker()
     self.__is_loaded = False
     self.__has_errors = False
     self.__thumbnails = []
     
     #Add the callbacks we are interested in
     playlist.add_callbacks(PlaylistCallbacks(self))
     
     #Fire playlist loading if neccesary
     if not playlist.is_in_ram(session):
         playlist.set_in_ram(session, True)
     
     #Finish the rest in the background
     self.load_in_background()
Exemple #2
0
 def __init__(self, session, playlist, playlist_manager):
     
     #Initialize all instance vars
     self.__playlist = playlist
     self.__playlist_manager = playlist_manager
     self.__conditions = ConditionList()
     self.__loader_lock = threading.Lock()
     self.__is_loaded = False
     self.__has_errors = False
     self.__thumbnails = []
     
     #Fire playlist loading if neccesary
     if not playlist.is_in_ram(session):
         playlist.set_in_ram(session, True)
     
     #Add the playlist callbacks
     self.__playlist.add_callbacks(PlaylistCallbacks(self))
     
     #Finish the rest in the background
     self.load_in_background()