diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-24 04:31:48 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-24 04:31:48 +0100 |
| commit | b2e88a8beabf04adc28947cf82996e8692a68b71 (patch) | |
| tree | 23d66c8672b69cce7835ffabae4092669062ada8 /import/src/plugins/trakt.rs | |
| parent | 774f64c0789529884dd7a5232f190e347ad29532 (diff) | |
| download | jellything-b2e88a8beabf04adc28947cf82996e8692a68b71.tar jellything-b2e88a8beabf04adc28947cf82996e8692a68b71.tar.bz2 jellything-b2e88a8beabf04adc28947cf82996e8692a68b71.tar.zst | |
move things around; kv crate
Diffstat (limited to 'import/src/plugins/trakt.rs')
| -rw-r--r-- | import/src/plugins/trakt.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/import/src/plugins/trakt.rs b/import/src/plugins/trakt.rs index 7530449..3569454 100644 --- a/import/src/plugins/trakt.rs +++ b/import/src/plugins/trakt.rs @@ -5,7 +5,7 @@ */ use crate::{ USER_AGENT, - plugins::{ImportContext, ImportPlugin, PluginInfo}, + plugins::{PluginContext, ImportPlugin, PluginInfo}, }; use anyhow::{Context, Result, anyhow, bail}; use jellycache::{HashKey, cache_memory}; @@ -380,7 +380,7 @@ impl ImportPlugin for Trakt { ..Default::default() } } - fn instruction(&self, ct: &ImportContext, node: RowNum, line: &str) -> Result<()> { + fn instruction(&self, ct: &PluginContext, node: RowNum, line: &str) -> Result<()> { use jellycommon::*; if let Some(value) = line.strip_prefix("trakt-").or(line.strip_prefix("trakt=")) { let (ty, id) = value.split_once(":").unwrap_or(("movie", value)); @@ -398,7 +398,7 @@ impl ImportPlugin for Trakt { } Ok(()) } - fn process(&self, ct: &ImportContext, node: RowNum) -> Result<()> { + fn process(&self, ct: &PluginContext, node: RowNum) -> Result<()> { self.process_primary(ct, node)?; self.process_episode(ct, node)?; Ok(()) @@ -406,7 +406,7 @@ impl ImportPlugin for Trakt { } impl Trakt { - fn process_primary(&self, ct: &ImportContext, node: RowNum) -> Result<()> { + fn process_primary(&self, ct: &PluginContext, node: RowNum) -> Result<()> { let data = ct.dba.get_node(node)?.unwrap(); let data = data.as_object(); let (trakt_kind, trakt_id): (_, u64) = if let Some(id) = data @@ -492,7 +492,7 @@ impl Trakt { })?; Ok(()) } - fn process_episode(&self, ct: &ImportContext, node: RowNum) -> Result<()> { + fn process_episode(&self, ct: &PluginContext, node: RowNum) -> Result<()> { let node_data = ct.dba.get_node(node)?.unwrap(); let node_data = node_data.as_object(); |