diff options
Diffstat (limited to 'import/src/plugins/vgmdb.rs')
| -rw-r--r-- | import/src/plugins/vgmdb.rs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/import/src/plugins/vgmdb.rs b/import/src/plugins/vgmdb.rs index 402fd90..a3928bd 100644 --- a/import/src/plugins/vgmdb.rs +++ b/import/src/plugins/vgmdb.rs @@ -4,15 +4,18 @@ Copyright (C) 2025 metamuffin <metamuffin.org> */ -use crate::USER_AGENT; +use crate::{ + USER_AGENT, + plugins::{ImportPlugin, PluginInfo}, +}; use anyhow::{Context, Result}; -use jellycache::{cache, cache_store, HashKey}; +use jellycache::{HashKey, cache, cache_store}; use jellycommon::Asset; use log::info; use regex::Regex; use reqwest::{ - header::{HeaderMap, HeaderName, HeaderValue}, Client, ClientBuilder, + header::{HeaderMap, HeaderName, HeaderValue}, }; use std::{ sync::{Arc, LazyLock}, @@ -21,7 +24,7 @@ use std::{ use tokio::{ runtime::Handle, sync::Semaphore, - time::{sleep_until, Instant}, + time::{Instant, sleep_until}, }; pub struct Vgmdb { @@ -125,3 +128,12 @@ impl Vgmdb { .context("vgmdb artist page scrape") } } + +impl ImportPlugin for Vgmdb { + fn info(&self) -> PluginInfo { + PluginInfo { + name: "vgmdb", + ..Default::default() + } + } +} |