diff options
-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, } } } |