mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-01 09:35:37 +00:00
delegate validation to the api level
This commit is contained in:
parent
1a84376b98
commit
09b83d6449
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue