1
0
Fork 0

Different Approach to Parser picking. Added Summary Edit

This commit is contained in:
Neshura 2023-09-24 13:52:24 +02:00
parent d8620b14c5
commit 4c5276738a
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
6 changed files with 152 additions and 53 deletions
src/parsers/irodori

View file

@ -0,0 +1,26 @@
use crate::parsers::{self, MetadataSource, Parser, ParserConsts};
pub(crate) struct Irodori {
}
impl Parser for Irodori {
fn new() -> Self {
Self {}
}
fn get_uses_file(&self) -> MetadataSource {
return MetadataSource::File;
}
fn source_is_file(&self) -> bool {
return Irodori::source == MetadataSource::File;
}
fn get_display_string(&self) -> &str {
return "Irodori Comics";
}
}
impl ParserConsts for Irodori {
const source: MetadataSource = MetadataSource::URL;
}