aboutsummaryrefslogtreecommitdiff
path: root/import/src/tmdb.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-12-22 20:42:37 +0100
committermetamuffin <metamuffin@disroot.org>2023-12-22 20:42:37 +0100
commit753a47a39c8e542ffa06d4c0735f9f67e890d199 (patch)
treecb7faa65e66296740315728af1ca864cf9e6174b /import/src/tmdb.rs
parent208a845a28f47fb6aef56ba447cfc7c2e093ac20 (diff)
downloadjellything-753a47a39c8e542ffa06d4c0735f9f67e890d199.tar
jellything-753a47a39c8e542ffa06d4c0735f9f67e890d199.tar.bz2
jellything-753a47a39c8e542ffa06d4c0735f9f67e890d199.tar.zst
rework import system pt. 7: cache tmdb, media ignore flags
Diffstat (limited to 'import/src/tmdb.rs')
-rw-r--r--import/src/tmdb.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/import/src/tmdb.rs b/import/src/tmdb.rs
index 3780524..37447e6 100644
--- a/import/src/tmdb.rs
+++ b/import/src/tmdb.rs
@@ -4,10 +4,10 @@
Copyright (C) 2023 metamuffin <metamuffin.org>
*/
use anyhow::Context;
+use bincode::{Decode, Encode};
use jellycommon::chrono::{format::Parsed, DateTime, Utc};
use log::info;
use serde::Deserialize;
-use std::io::Write;
#[derive(Debug, Clone, Deserialize)]
pub struct TmdbQuery {
@@ -17,7 +17,7 @@ pub struct TmdbQuery {
pub total_results: usize,
}
-#[derive(Debug, Clone, Deserialize)]
+#[derive(Debug, Clone, Deserialize, Encode, Decode)]
pub struct TmdbQueryResult {
pub adult: bool,
pub backdrop_path: Option<String>,
@@ -35,7 +35,7 @@ pub struct TmdbQueryResult {
pub vote_count: usize,
}
-#[derive(Debug, Clone, Deserialize)]
+#[derive(Debug, Clone, Deserialize, Encode, Decode)]
pub struct TmdbDetails {
pub adult: bool,
pub backdrop_path: Option<String>,
@@ -59,13 +59,13 @@ pub struct TmdbDetails {
pub tagline: Option<String>,
}
-#[derive(Debug, Clone, Deserialize)]
+#[derive(Debug, Clone, Deserialize, Encode, Decode)]
pub struct TmdbGenre {
pub id: u64,
pub name: String,
}
-#[derive(Debug, Clone, Deserialize)]
+#[derive(Debug, Clone, Deserialize, Encode, Decode)]
pub struct TmdbProductionCompany {
pub id: u64,
pub name: String,