diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-23 03:29:57 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-23 03:29:57 +0100 |
commit | df7b37c2f5a7d7ace4e831595ae691aae816d83a (patch) | |
tree | 37285ab41f6115dfe14dd20e36a36afbc0980b24 /import/src | |
parent | da57ad84e185fa2ee9d812bc74432bec51e6046e (diff) | |
download | jellything-df7b37c2f5a7d7ace4e831595ae691aae816d83a.tar jellything-df7b37c2f5a7d7ace4e831595ae691aae816d83a.tar.bz2 jellything-df7b37c2f5a7d7ace4e831595ae691aae816d83a.tar.zst |
some trakt api keys appear to be optional
Diffstat (limited to 'import/src')
-rw-r--r-- | import/src/lib.rs | 4 | ||||
-rw-r--r-- | import/src/trakt.rs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs index 46b98a9..473ed53 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -232,7 +232,9 @@ async fn import_path( }; for s in opts.sources { - process_source(opts.id.clone(), s, &path, &index_path, db, fed, ap).await?; + process_source(opts.id.clone(), s, &path, &index_path, db, fed, ap) + .await + .context(anyhow!("processing source in {path:?}"))?; } } Ok(()) diff --git a/import/src/trakt.rs b/import/src/trakt.rs index 0441ad0..1d7b8f7 100644 --- a/import/src/trakt.rs +++ b/import/src/trakt.rs @@ -107,7 +107,9 @@ impl Trakt { #[derive(Debug, Clone, Deserialize, Serialize, Default, Encode, Decode)] pub struct TraktPeople { + #[serde(default)] pub cast: Vec<TraktAppearance>, + #[serde(default)] pub crew: BTreeMap<TraktPeopleGroup, Vec<TraktAppearance>>, } |