Add dlsite genres scraping
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user