diff --git a/src/processing/xtream_processor_series.rs b/src/processing/xtream_processor_series.rs index 6e2010ed1..1b2423ecb 100644 --- a/src/processing/xtream_processor_series.rs +++ b/src/processing/xtream_processor_series.rs @@ -90,7 +90,7 @@ async fn playlist_resolve_series_info(cfg: &Config, errors: &mut Vec 0 && elapsed % 30 == 0 { + if elapsed > 0 && ((processed_series_info_count - last_processed_series_info_count) > 50) && (elapsed % 30 == 0) { info!("resolved {processed_series_info_count}/{series_info_count} series info"); last_processed_series_info_count = processed_series_info_count; } diff --git a/src/processing/xtream_processor_vod.rs b/src/processing/xtream_processor_vod.rs index 3ea7ff6d9..981fc7f1d 100644 --- a/src/processing/xtream_processor_vod.rs +++ b/src/processing/xtream_processor_vod.rs @@ -107,7 +107,7 @@ pub async fn playlist_resolve_vod(cfg: &Config, target: &ConfigTarget, errors: & if log_enabled!(Level::Info) { processed_vod_info_count += 1; let elapsed = start_time.elapsed().as_secs(); - if elapsed > 0 && elapsed % 30 == 0 { + if elapsed > 0 && ((processed_vod_info_count - last_processed_vod_info_count) > 50) && (elapsed % 30 == 0) { info!("resolved {processed_vod_info_count}/{vod_info_count} vod info"); last_processed_vod_info_count = processed_vod_info_count; } diff --git a/test/rest-api.http b/test/rest-api.http index 5af3c18d6..15c3f53bb 100644 --- a/test/rest-api.http +++ b/test/rest-api.http @@ -27,7 +27,7 @@ Content-Type: application/x-www-form-urlencoded username=xt&password=xt ### m3u playlist reverse -GET {{local}}/m3u?username=xtream&password=xtream.secret +GET {{local}}/m3u?username=m3u&password=m3u ### m3u playlist @@ -50,7 +50,7 @@ GET {{local}}/player_api.php?username=xt&password=xt&action=get_live_streams&cat GET {{local}}/player_api.php?username=xt&password=xt&action=get_vod_categories ### xtream vod streams -GET {{local}}/player_api.php?username=xt&password=xt&action=get_vod_streams&category_id=57 +GET {{local}}/player_api.php?username=xt&password=xt&action=get_vod_streams&category_id=636 ### xtream vod info GET {{local}}/player_api.php?username=xt&password=xt&action=get_vod_info&vod_id=7590