From 4a3cf99ec7491c4e336cc2505cbb2f34ad49178b Mon Sep 17 00:00:00 2001 From: euzu Date: Thu, 28 Mar 2024 09:37:10 +0100 Subject: [PATCH] Added input options xtream_skip_live, xtream_skip_vod, xtream_skip_series. --- config/source.yml | 2 -- src/utils/download.rs | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/source.yml b/config/source.yml index cefa5d121..4ae1b7a85 100644 --- a/config/source.yml +++ b/config/source.yml @@ -21,8 +21,6 @@ sources: url: 'http://localhost:8080' username: test password: test - select: - - targets: - name: pl1 filename: playlist_1.m3u diff --git a/src/utils/download.rs b/src/utils/download.rs index b4b41b647..65dd58aba 100644 --- a/src/utils/download.rs +++ b/src/utils/download.rs @@ -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 { 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 }