m3u parser lowercase channel ID fix (#688)

m3u parser forgets to lowercase channel ID causing EPG matching to fail. This change makes it consistent with the Xtream parser and EPG XML parser.
This commit is contained in:
zachhide
2026-04-02 05:02:01 +02:00
committed by GitHub
parent f12b1cf0c2
commit 01bf2357bc
+1 -1
View File
@@ -208,7 +208,7 @@ fn process_header(input_name: &Arc<str>, video_suffixes: &[String], content: &st
}
M3uToken::TvgChno => plih.chno = stack[val_off..].parse::<u32>().unwrap_or(0),
M3uToken::GroupTitle => plih.group = stack[val_off..].intern(),
M3uToken::TvgId => plih.epg_channel_id = if stack.len() == val_off { None } else { Some(stack[val_off..].intern()) },
M3uToken::TvgId => plih.epg_channel_id = if stack.len() == val_off { None } else { Some(stack[val_off..].to_lowercase().intern()) },
M3uToken::TvgName => plih.name = stack[val_off..].intern(),
M3uToken::TvgLogo => plih.logo = stack[val_off..].intern(),
M3uToken::TvgLogoSmall => plih.logo_small = stack[val_off..].intern(),