Add dlsite genres scraping

This commit is contained in:
2025-10-18 14:54:00 +08:00
parent 27bee0cfde
commit eacf897f8c
3 changed files with 50 additions and 12 deletions

View File

@@ -15,13 +15,13 @@ impl ApplicationConfig {
}
}
pub fn from_file(path: &PathBuf) -> Result<Self> {
fn from_file(path: &PathBuf) -> Result<Self> {
let reader = std::fs::File::open(path)?;
let result = serde_json::from_reader(reader)?;
Ok(result)
}
pub fn new() -> Self {
fn new() -> Self {
let conf = Self {
basic_config: BasicConfig {
db_path: APP_DATA_DIR