diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-15 02:57:31 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-15 02:57:31 +0100 |
| commit | c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7 (patch) | |
| tree | 2ea722aff33252ff2e3662faee63cabb223339c3 /import/src/plugins/infojson.rs | |
| parent | 8c0ee6d17fe0dbd7748e7b60ff01a0e8f25faa51 (diff) | |
| download | jellything-c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7.tar jellything-c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7.tar.bz2 jellything-c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7.tar.zst | |
new update_node_init
Diffstat (limited to 'import/src/plugins/infojson.rs')
| -rw-r--r-- | import/src/plugins/infojson.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/import/src/plugins/infojson.rs b/import/src/plugins/infojson.rs index 3aac3ec..fd15e03 100644 --- a/import/src/plugins/infojson.rs +++ b/import/src/plugins/infojson.rs @@ -4,11 +4,9 @@ Copyright (C) 2026 metamuffin <metamuffin.org> */ use anyhow::{Context, Result, anyhow}; +use chrono::{Utc, format::Parsed}; use jellycache::cache_read; -use jellycommon::{ - IdentifierType, NodeID, NodeKind, RatingType, - chrono::{Utc, format::Parsed}, -}; +use jellydb::table::RowNum; use jellyremuxer::matroska::{AttachedFile, Segment}; use log::info; use serde::{Deserialize, Serialize}; @@ -168,7 +166,7 @@ impl ImportPlugin for Infojson { ..Default::default() } } - fn file(&self, ct: &ImportContext, parent: NodeID, path: &Path) -> Result<()> { + fn file(&self, ct: &ImportContext, parent: RowNum, path: &Path) -> Result<()> { let filename = path.file_name().unwrap().to_string_lossy(); if filename != "channel.info.json" { return Ok(()); |