robin_cli_core 0.1.0

Core functionality for robin downloader
Documentation
1
2
3
4
5
6
7
8
9
use crate::sources::*;

pub async fn match_manga(url: String) -> anyhow::Result<impl Serie> {
    if url.starts_with("https://shijiescans.com") {
        return Ok(shijie_turkish::ShijieTurkish::new(url).await?);
    } else {
        return Err(anyhow::Error::msg("Unsupported Source"));
    }
}