27 lines
539 B
Rust
27 lines
539 B
Rust
|
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;
|
||
|
}
|