various: simplify code; work on security and performance
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9a5114addcab5fbff430ab2b919b83466a6a6964
This commit is contained in:
parent
016841b200
commit
c4adc4e3e0
75 changed files with 12921 additions and 358 deletions
|
|
@ -27,6 +27,27 @@ pub enum PinakesEvent {
|
|||
expected: String,
|
||||
actual: String,
|
||||
},
|
||||
MediaRated {
|
||||
media_id: String,
|
||||
user_id: String,
|
||||
stars: u8,
|
||||
},
|
||||
MediaCommented {
|
||||
media_id: String,
|
||||
user_id: String,
|
||||
},
|
||||
PlaylistCreated {
|
||||
playlist_id: String,
|
||||
owner_id: String,
|
||||
},
|
||||
TranscodeStarted {
|
||||
media_id: String,
|
||||
profile: String,
|
||||
},
|
||||
TranscodeCompleted {
|
||||
media_id: String,
|
||||
profile: String,
|
||||
},
|
||||
}
|
||||
|
||||
impl PinakesEvent {
|
||||
|
|
@ -37,6 +58,11 @@ impl PinakesEvent {
|
|||
Self::MediaDeleted { .. } => "media_deleted",
|
||||
Self::ScanCompleted { .. } => "scan_completed",
|
||||
Self::IntegrityMismatch { .. } => "integrity_mismatch",
|
||||
Self::MediaRated { .. } => "media_rated",
|
||||
Self::MediaCommented { .. } => "media_commented",
|
||||
Self::PlaylistCreated { .. } => "playlist_created",
|
||||
Self::TranscodeStarted { .. } => "transcode_started",
|
||||
Self::TranscodeCompleted { .. } => "transcode_completed",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue