Feature/for each genre review (#541)

* New Features
Added for_each DSL construct for iterating over playlist item fields, with split() function support.
Added "genre" as a queryable and editable playlist item field.

Bug Fixes
Improved short EPG request handling with automatic default limits.
Fixed EPG timestamp formatting to use UTC consistently.
This commit is contained in:
euzu
2026-01-26 23:04:37 +01:00
committed by GitHub
parent 6ae663f024
commit e01197cf52
37 changed files with 629 additions and 461 deletions
+2 -1
View File
@@ -379,6 +379,7 @@ mod tests {
use crate::utils::async_file_reader;
use shared::model::{XtreamCluster, XtreamSeriesInfo};
use std::fs;
use shared::utils::Internable;
#[test]
fn test_read_json_file_into_struct() {
@@ -400,7 +401,7 @@ mod tests {
async fn test_read_json_stream_into_struct() -> std::io::Result<()> {
if fs::exists("/tmp/vod_streams.json").unwrap_or(false) {
let reader = Box::pin(async_file_reader(tokio::fs::File::open("/tmp/vod_streams.json").await?));
match map_to_xtream_streams(XtreamCluster::Video, reader, "test").await {
match map_to_xtream_streams(XtreamCluster::Video, reader, &"test".intern()).await {
Ok(_streams) => {
println!("{:?}", _streams.get(1));
println!("{:?}", _streams.get(100));