mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-28 20:12:12 +02:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user