diff options
author | metamuffin <metamuffin@disroot.org> | 2024-03-30 10:38:18 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-03-30 10:38:18 +0100 |
commit | d2d58e5ce076a00ad97836a036bcdacfb423dfcb (patch) | |
tree | 6d378c528e3b311bf70a6b80b6a4c84f99be1741 /common | |
parent | 7f9ab0e949666647074f8d195308a69b224024bb (diff) | |
download | jellything-d2d58e5ce076a00ad97836a036bcdacfb423dfcb.tar jellything-d2d58e5ce076a00ad97836a036bcdacfb423dfcb.tar.bz2 jellything-d2d58e5ce076a00ad97836a036bcdacfb423dfcb.tar.zst |
probably fix tmdb import
Diffstat (limited to 'common')
-rw-r--r-- | common/src/lib.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index 951f3f8..27ca24a 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -124,6 +124,7 @@ pub struct ImportOptions { pub enum ImportSource { Override(Node), Tmdb { + kind: TmdbKind, id: u64, }, Trakt { @@ -335,3 +336,17 @@ impl Display for PeopleGroup { }) } } + +#[derive(Debug, Clone, Copy, Serialize, Deserialize, Encode, Decode)] +pub enum TmdbKind { + Tv, + Movie, +} +impl Display for TmdbKind { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.write_str(match self { + TmdbKind::Tv => "tv", + TmdbKind::Movie => "movie", + }) + } +} |