fixed the murge

This commit is contained in:
Zastian Pretorius
2023-02-03 09:25:54 +00:00
parent 1bad59ccb9
commit 1ad8e8d12e

View File

@@ -17,7 +17,7 @@ fn main() {
let mut chapter: u32 = 0;
//let search = option string
let mut count = 0;
let mut provider: String = "gogo".to_string();
let mut provider: String = "zoro".to_string();
let mut reader: String = "bat".to_string();
let mut cast = (false, "0".to_string());
for arg in std::env::args() {
@@ -28,11 +28,11 @@ fn main() {
if let Some(arg) = std::env::args().nth(count + 1) {
//get the next argument and see if it is = to gogo of vrv
match arg.as_str() {
"zoro" | "gogoanime" => {
"zoro" | "gogo" => {
provider = arg;
count += 1;
}
&_ => provider = "gogoanime".to_string(),
&_ => provider = "gogo".to_string(),
}
} else {
provider = "zoro".to_string();
@@ -48,14 +48,9 @@ fn main() {
}
&_ => reader = "bat".to_string(),
}
} else {
provider = "glow".to_string();
}
} else {
provider = "gogo".to_string();
}
"--cast" | "-C" => {
if let Some(arg) = std::env::args().nth(count + 1) {
@@ -142,7 +137,7 @@ fn print_help() {
"if the -r argument is not used it will default to {}",
"zoro".green()
);
println!("the providers are {} or {}", "gogoanime".green(), "zoro".green());
println!("the providers are {} or {}", "gogo".green(), "zoro".green());
println!("");
println!("reader:\t\t{}", format_args!("{}", "-R --reader".red()));
println!(