pub fn add_favorite(item: impl Into<LibraryItem>) -> Result<(), Error>
Adds a new favorite item to the library.
Fails if the library is not initialized.