package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.2.tar.gz
sha256=c72807d303de137441b643fec1c7630c930ebc792b576783c7961b237c2114db
sha512=770f878bbdac8033d90e904ce8e9c84fc75331c7ff9b35e2204fafe3746f432f2664296dac91942a788b82a2da07478d91b76ed85cd880758d2def8a55144840

doc/shakuhachi.libs/Skhclibs/Collection/Playlist/index.html

Module Collection.PlaylistSource

Operations on playlists

create collection database ~smart ~flag ~rating name query creates a new playlist with songs matched by query. The newly created playlist is inserted inside database and the playlist is returned.

playlists collection database returs all playlists managed by collection.

Sourceval find_from_name : t -> SkhcDb.Database.t -> string -> (SkhcDb.Playlist.t option, Sqlite3.Rc.t * string) result

find_from_name collection database name finds the first playlist having the name name. Returns None if no such playlist is found.

musics collection database playlist fetches all the musics within playlist.

add collection db playlist query adds musics matched by query in playlist. Returns the updated playlist along with its songs.

delete collection db playlist query removes musics matched by query from playlist. Returns the updated playlist along with its songs.

replace collection db playlist query replaces playlist's query by query. For non-smart playlist, This functions also recomputes playlist's songs. Returns the updated playlist along with its songs.

Sourceval remove : t -> SkhcDb.Database.t -> SkhcDb.Playlist.t -> (unit, Sqlite3.Rc.t * string) result

remove collection db playlist removes playlist from db.

Sourceval remove_from_name : t -> SkhcDb.Database.t -> string -> (unit, [> `NoMatchingPlaylist | `SqliteError of Sqlite3.Rc.t * string ]) result

remove_from_name is remove but tries to find the playlist from its name.