MCPcopy Create free account
hub / github.com/Syncplay/syncplay / isPlayingMusic

Method isPlayingMusic

syncplay/client.py:220–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

218 self.ui.showDebugMessage("Rewinded after double-check")
219
220 def isPlayingMusic(self):
221 if self.userlist.currentUser.file:
222 for musicFormat in constants.MUSIC_FORMATS:
223 if self.userlist.currentUser.file['name'].lower().endswith(musicFormat):
224 return True
225
226 def seamlessMusicOveride(self):
227 return self.isPlayingMusic() and self._recentlyAdvanced()

Callers 5

seamlessMusicOverideMethod · 0.95
loopSingleFilesMethod · 0.95
autoplayCheckMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected