This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a nightmare. | |
| class PlayerStack: | |
| # ... | |
| def liquidload(self): | |
| lstck = self.getSortedWaitingStack() | |
| if (not self.playingElement | |
| or ((self.playingElement.startedAt + self.playingElement.length) - time.time()) < Stack.preload | |
| or (len(lstck) > 0 and isinstance(lstck[0], Action) and lstck[0].directOnly == True)): | |
| if len(lstck) == 0: | |
| self.state = "stopped" |
NewerOlder