pinakes-core: remove extracted modules; trim to storage/scan/scheduler domain

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ibdce07d2626c1a9541eeed26a17716b46a6a6964
This commit is contained in:
raf 2026-05-20 21:52:08 +03:00
commit 011e8edb28
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
45 changed files with 2169 additions and 10844 deletions

View file

@ -1,12 +1,12 @@
use pinakes_core::{
books::{extract_isbn_from_text, normalize_isbn, parse_author_file_as},
enrichment::{
books::BookEnricher,
googlebooks::GoogleBooksClient,
openlibrary::OpenLibraryClient,
},
thumbnail::{CoverSize, extract_epub_cover, generate_book_covers},
};
use pinakes_enrichment::{
books::BookEnricher,
googlebooks::GoogleBooksClient,
openlibrary::OpenLibraryClient,
};
#[test]
fn test_isbn_normalization() {

View file

@ -841,10 +841,10 @@ async fn test_external_metadata() {
let item = make_test_media("enrich1");
storage.insert_media(&item).await.unwrap();
let meta = pinakes_core::enrichment::ExternalMetadata {
let meta = pinakes_enrichment::ExternalMetadata {
id: uuid::Uuid::now_v7(),
media_id: item.id,
source: pinakes_core::enrichment::EnrichmentSourceType::MusicBrainz,
source: pinakes_enrichment::EnrichmentSourceType::MusicBrainz,
external_id: Some("mb-123".to_string()),
metadata_json: r#"{"title":"Test"}"#.to_string(),
confidence: 0.85,
@ -857,7 +857,7 @@ async fn test_external_metadata() {
assert_eq!(metas.len(), 1);
assert_eq!(
metas[0].source,
pinakes_core::enrichment::EnrichmentSourceType::MusicBrainz
pinakes_enrichment::EnrichmentSourceType::MusicBrainz
);
assert_eq!(metas[0].external_id.as_deref(), Some("mb-123"));
assert!((metas[0].confidence - 0.85).abs() < 0.01);

View file

@ -9,10 +9,9 @@
#![allow(clippy::print_stderr, reason = "Fine for tests")]
use std::{path::Path, sync::Arc};
use pinakes_core::{
config::PluginTimeoutConfig,
plugin::{PluginManager, PluginManagerConfig, PluginPipeline},
};
use pinakes_core::plugin::PluginPipeline;
use pinakes_plugin::{PluginManager, PluginManagerConfig};
use pinakes_types::config::PluginTimeoutConfig;
use tempfile::TempDir;
/// Path to the compiled test plugin fixture.