From fa4dfd7f066d93678072431dcc5b7b0dd142c1a9 Mon Sep 17 00:00:00 2001 From: euzu Date: Wed, 27 Aug 2025 09:01:51 +0200 Subject: [PATCH] fixed username password invalid for m3u message --- shared/src/model/config/macros.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shared/src/model/config/macros.rs b/shared/src/model/config/macros.rs index 307ee4a6a..988ef668a 100644 --- a/shared/src/model/config/macros.rs +++ b/shared/src/model/config/macros.rs @@ -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 => {