From fbe81537a258a0f8b087a5a21abd58fb9c8a4ee1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 21 Jan 2024 23:53:38 +0100 Subject: lazy image loading, person subtitles --- common/src/lib.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'common') diff --git a/common/src/lib.rs b/common/src/lib.rs index f16338b..d61532c 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -312,3 +312,21 @@ impl Display for ObjectIds { Ok(()) } } +impl Display for PeopleGroup { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.write_str(match self { + PeopleGroup::Cast => "Cast", + PeopleGroup::Writing => "Writing", + PeopleGroup::Directing => "Directing", + PeopleGroup::Art => "Art", + PeopleGroup::Sound => "Sound", + PeopleGroup::Camera => "Camera", + PeopleGroup::Lighting => "Lighting", + PeopleGroup::Crew => "Crew", + PeopleGroup::Editing => "Editing", + PeopleGroup::Production => "Production", + PeopleGroup::Vfx => "Visual Effects", + PeopleGroup::CostumeMakeup => "Costume & Makeup", + }) + } +} -- cgit v1.2.3-70-g09d2