예제 #1
0
파일: player.py 프로젝트: petrushev/txplaya
    def onStart(self):
        from txplaya.playlistregistry import playlistRegistry

        filepaths = playlistRegistry.loadPlaylist('__current__')

        for filepath in filepaths:
            if not self.library.pathExists(filepath):
                continue
            track = Track(filepath)
            self.playlist.insert(track)
예제 #2
0
파일: player.py 프로젝트: petrushev/txplaya
 def load(self, name):
     from txplaya.playlistregistry import playlistRegistry
     return playlistRegistry.loadPlaylist(name)