diff options
author | metamuffin <metamuffin@disroot.org> | 2024-03-30 09:25:45 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-03-30 09:25:45 +0100 |
commit | 7f9ab0e949666647074f8d195308a69b224024bb (patch) | |
tree | b174a5a11c32968d18506493961a7bfad344565c | |
parent | 4fefaf44b094aeac30028bc7199992bb5e6d4b3c (diff) | |
download | jellything-7f9ab0e949666647074f8d195308a69b224024bb.tar jellything-7f9ab0e949666647074f8d195308a69b224024bb.tar.bz2 jellything-7f9ab0e949666647074f8d195308a69b224024bb.tar.zst |
new people group: created by
-rw-r--r-- | common/src/lib.rs | 2 | ||||
-rw-r--r-- | import/src/trakt.rs | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index cf33032..951f3f8 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -110,6 +110,7 @@ pub enum PeopleGroup { #[cfg_attr(feature = "rocket", field(value = "production"))] Production, #[cfg_attr(feature = "rocket", field(value = "vfx"))] Vfx, #[cfg_attr(feature = "rocket", field(value = "costume"))] CostumeMakeup, + #[cfg_attr(feature = "rocket", field(value = "createdby"))] CreatedBy, } #[derive(Debug, Clone, Deserialize, Serialize, Default, Encode, Decode)] @@ -330,6 +331,7 @@ impl Display for PeopleGroup { PeopleGroup::Production => "Production", PeopleGroup::Vfx => "Visual Effects", PeopleGroup::CostumeMakeup => "Costume & Makeup", + PeopleGroup::CreatedBy => "Created by:", }) } } diff --git a/import/src/trakt.rs b/import/src/trakt.rs index 2bec992..2bcf45f 100644 --- a/import/src/trakt.rs +++ b/import/src/trakt.rs @@ -206,6 +206,8 @@ pub enum TraktPeopleGroup { Lighting, #[serde(rename = "editing")] Editing, + #[serde(rename = "created by")] + CreatedBy, } impl TraktPeopleGroup { pub fn a(self) -> PeopleGroup { @@ -221,6 +223,7 @@ impl TraktPeopleGroup { TraktPeopleGroup::VisualEffects => PeopleGroup::Vfx, TraktPeopleGroup::Lighting => PeopleGroup::Lighting, TraktPeopleGroup::Editing => PeopleGroup::Editing, + TraktPeopleGroup::CreatedBy => PeopleGroup::CreatedBy, } } } |