use crate::structs;
use std::fs::write;
use std::path::Path;
extern crate reqwest;
extern crate serde_json;
pub fn generate_slug(text: &str) -> String {
text.to_lowercase().trim().replace(|c: char| !c.is_alphanumeric(), "-")
}
pub async fn get_manga(client: reqwest::Client, id: i32) -> Result