now prop added to Add/Remove library actions
@@ -5,6 +5,7 @@ use crate::state_types::models::ctx::Settings;
use crate::types::addons::{Descriptor, TransportUrl};
use crate::types::api::GDPRConsent;
use crate::types::{LibItem, MetaPreview, Stream};
+use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -43,8 +44,14 @@ pub enum ActionSettings {
#[serde(tag = "action", content = "args")]
pub enum ActionLibrary {
SyncWithAPI,
- Add(Box<MetaPreview>),
- Remove { id: String },
+ Add {
+ meta_item: Box<MetaPreview>,
+ now: DateTime<Utc>,
+ },
+ Remove {
+ id: String,
+ now: DateTime<Utc>,
+ },
Update(Box<LibItem>),
}
