Skip to main content

Module music_lib

Module music_lib 

Source

Modules§

indexer
sorting
Sorting helper functions for library items.

Structs§

Album
Artist
Config
Genre
HashMatchingResult
LRCTool
Info on the player or editor that created the LRC file.
LineTag
A single line in the synced lyrics.
MusicLibrary
Playlist
SyncedLyrics
Lyrics grouped into timestamped segments with additional metadata.
Timestamp
A subset of the ISO 8601 timestamp format
Track
ValueSeparators

Enums§

LibraryItem
Lyrics
Lyrics data, can be either synced or unsynced.
LyricsError
Error indicating why lyrics couldn’t be parsed as LRC.
Progress

Traits§

AsAlbum
AsArtist
AsGenre
AsPlaylist
AsTrack
LyricsAccess
Accessor trait for synced lyrics.

Functions§

add_favorite
Adds a new favorite item to the library.
add_tracks
create_playlist
delete_playlists
export_playlist_to_m3u8
import_playlist_from_m3u8
is_favorite
Checks whether the given item is in the favorites list.
remove_favorite
Removes an item from the favorites list.
remove_tracks_by_indices
Remove tracks by indices from a playlist.
rename_playlist
toggle_favorite
Adds an item to the favorites list if it’s not present there, or removes it if it is.