delegate validation to the api level

This commit is contained in:
yggverse 2025-07-07 14:30:27 +03:00
parent 1a84376b98
commit 09b83d6449
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,9 @@
/// Parse infohash from the source filepath,
/// decode JSON to array on success
pub fn infohashes(path: &str) -> anyhow::Result<Vec<String>> {
if path.contains("://") {
todo!("URL sources yet not supported")
}
let mut f = std::fs::File::open(path)?;
let mut s = String::new();

View file

@ -78,9 +78,6 @@ async fn main() -> Result<()> {
debug.info("Index queue begin...");
index.refresh();
for source in &config.infohash {
if source.contains("://") {
todo!("URL sources yet not supported")
}
debug.info(&format!("Index source `{source}`..."));
// grab latest info-hashes from this source
// * aquatic server may update the stats at this moment, handle result manually