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();