From b2e88a8beabf04adc28947cf82996e8692a68b71 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 24 Jan 2026 04:31:48 +0100 Subject: move things around; kv crate --- import/src/plugins/infojson.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'import/src/plugins/infojson.rs') diff --git a/import/src/plugins/infojson.rs b/import/src/plugins/infojson.rs index 3e6bdb8..d62983d 100644 --- a/import/src/plugins/infojson.rs +++ b/import/src/plugins/infojson.rs @@ -3,7 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2026 metamuffin */ -use crate::plugins::{ImportContext, ImportPlugin, PluginInfo}; +use crate::plugins::{PluginContext, ImportPlugin, PluginInfo}; use anyhow::{Context, Result, anyhow}; use chrono::{Utc, format::Parsed}; use jellycache::cache_read; @@ -171,7 +171,7 @@ impl ImportPlugin for Infojson { ..Default::default() } } - fn file(&self, ct: &ImportContext, parent: RowNum, path: &Path) -> Result<()> { + fn file(&self, ct: &PluginContext, parent: RowNum, path: &Path) -> Result<()> { let filename = path.file_name().unwrap().to_string_lossy(); if filename != "channel.info.json" { return Ok(()); @@ -208,7 +208,7 @@ impl ImportPlugin for Infojson { }) } - fn media(&self, ct: &ImportContext, row: RowNum, _path: &Path, seg: &Segment) -> Result<()> { + fn media(&self, ct: &PluginContext, row: RowNum, _path: &Path, seg: &Segment) -> Result<()> { let infojson = seg .attachments .iter() -- cgit v1.3