fixed username password invalid for m3u message

This commit is contained in:
euzu
2025-08-27 09:01:51 +02:00
parent 30a88bb2ae
commit fa4dfd7f06
+4 -2
View File
@@ -11,7 +11,8 @@ macro_rules! check_input_credentials {
match $input_type {
InputType::M3u => {
if $this.username.is_some() || $this.password.is_some() {
return Err(info_err!("Input types of m3u should not use username or password".to_owned()));
// TODO only for initial check
//return Err(info_err!("Input types of m3u should not use username or password".to_owned()));
}
let (username, password) = $crate::utils::get_credentials_from_url_str(&$this.url);
$this.username = username;
@@ -24,7 +25,8 @@ macro_rules! check_input_credentials {
}
}
if $this.username.is_some() || $this.password.is_some() {
return Err(info_err!("Input types of m3u-batch should not define username or password".to_owned()));
// TODO only for initial check
// return Err(info_err!("Input types of m3u-batch should not define username or password".to_owned()));
}
}
InputType::Xtream => {