Added input options xtream_skip_live, xtream_skip_vod, xtream_skip_series.

This commit is contained in:
euzu
2024-03-28 09:37:10 +01:00
parent d3cc9043bb
commit 4a3cf99ec7
2 changed files with 4 additions and 3 deletions
-2
View File
@@ -21,8 +21,6 @@ sources:
url: 'http://localhost:8080'
username: test
password: test
select:
-
targets:
- name: pl1
filename: playlist_1.m3u
+4 -1
View File
@@ -1,6 +1,6 @@
use std::path::PathBuf;
use std::thread::sleep;
use log::debug;
use log::{debug, info};
use crate::m3u_filter_error::M3uFilterError;
use crate::model::config::{Config, ConfigInput};
use crate::model::playlist::{FetchedPlaylist, PlaylistGroup, PlaylistItem, PlaylistItemType, XtreamCluster};
@@ -98,6 +98,9 @@ fn get_skip_cluster(input: &&ConfigInput) -> Vec<XtreamCluster> {
skip_cluster.push(XtreamCluster::Series)
}
}
if skip_cluster.len() == 3 {
info!("You have skipped all sections from xtream input {}", input.name.as_ref().unwrap_or(&input.id.to_string()));
}
skip_cluster
}