Skip to content
Bluemi edited this page Mar 29, 2021 · 2 revisions

Attributes

  • song_id
  • title
  • path
  • total_duration (optional)

Non-optional attributes must be present when creating a new song. The optional attribute total_duration is not required directly. This is done to prevent long wait times, when importing many songs. First approach would be to compute the duration when a song is played. This can be improved by utilizing a new thread for this task.

Song IDs

The song_id attribute is an integer, starting with 0 for the first song and simply counting upwards for every new song. If a song is deleted, its id will not be reassigned.

Song Buffer

All songs are stored in the song_buffer. You can search for songs by id or path.

Clone this wiki locally