예제 #1
0
    def _wait_for_track_metadata(self, track):
        def test_is_loaded():
            return self._track_is_ready(track, test_album=True, test_artists=False)

        if not test_is_loaded():
            self.__conditions.add_condition(test_is_loaded)
            current_task.condition_wait(self.__conditions, 10)
예제 #2
0
파일: loaders.py 프로젝트: ziethan/spotimc
    def _wait_for_track_metadata(self, track):
        def test_is_loaded():
            return self._track_is_ready(track,
                                        test_album=True,
                                        test_artists=False)

        if not test_is_loaded():
            self.__conditions.add_condition(test_is_loaded)
            current_task.condition_wait(self.__conditions, 10)
예제 #3
0
파일: loaders.py 프로젝트: prepux/spotimc
 def _wait_for_playlist(self):
     if not self.__playlist.is_loaded():
         self.__conditions.add_condition(self.__playlist.is_loaded)
         current_task.condition_wait(self.__conditions, 10)
예제 #4
0
파일: loaders.py 프로젝트: ziethan/spotimc
 def _wait_for_playlist(self):
     if not self.__playlist.is_loaded():
         self.__conditions.add_condition(self.__playlist.is_loaded)
         current_task.condition_wait(self.__conditions, 10)