pub fn toggle_favorite(item: impl Into<LibraryItem>) -> Result<(), Error>
Adds an item to the favorites list if it’s not present there, or removes it if it is.
Fails if the library is not initialized.