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

Method savePlaylistToFile

syncplay/client.py:2029–2033  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

2027 self.changePlaylist(newPlaylist, username=None, resetIndex=True)
2028
2029 def savePlaylistToFile(self, path):
2030 with open(path, 'w') as playlistFile:
2031 playlistToSave = utils.getListAsMultilineString(self._playlist)
2032 playlistFile.write(playlistToSave)
2033 self._ui.showMessage("Playlist saved as {}".format(path)) # TODO: Move to messages_en
2034
2035 def playlistNeedsRestoring(self, files, username):
2036 if self._client.playlistMayNeedRestoring:

Callers 1

Calls 2

writeMethod · 0.45
showMessageMethod · 0.45

Tested by

no test coverage detected