Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: reduce logging in player detection and media asset fetching for cleaner output

Tonho44993efe7afe
diff --git a/src-tauri/src/platforms/hotmart/parser.rs b/src-tauri/src/platforms/hotmart/parser.rs
index 09b813af..9665fe6d 100644
--- a/src-tauri/src/platforms/hotmart/parser.rs
+++ b/src-tauri/src/platforms/hotmart/parser.rs
@@ -24,7 +24,6 @@ pub fn detect_players_from_html(html: &str) -> Vec<DetectedPlayer> {
.filter_map(|el| {
let src = el.value().attr("src")?;
if !allowlist.iter().any(|kw| src.contains(kw)) {
- tracing::warn!("iframe desconhecido ignorado: {}", src);
return None;
}
@@ -75,8 +74,6 @@ pub async fn fetch_player_media_assets(
player_url: &str,
session: &HotmartSession,
) -> anyhow::Result<Vec<serde_json::Value>> {
- tracing::info!("[download] Buscando player: {}", &player_url[..80.min(player_url.len())]);
-
let resp = session
.client
.get(player_url)
@@ -103,6 +100,5 @@ pub async fn fetch_player_media_assets(
.cloned()
.unwrap_or_default();
- tracing::info!("[download] mediaAssets extraídos: {} assets", assets.len());
Ok(assets)
}