diff options
Diffstat (limited to 'stream/src/cues.rs')
| -rw-r--r-- | stream/src/cues.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stream/src/cues.rs b/stream/src/cues.rs index d11e2d7..b48683d 100644 --- a/stream/src/cues.rs +++ b/stream/src/cues.rs @@ -7,6 +7,7 @@ use anyhow::{Result, anyhow}; use jellycache::{Cache, HashKey}; use jellyremuxer::{demuxers::create_demuxer_autodetect, matroska::TrackType}; +use log::info; use serde::{Deserialize, Serialize}; use std::{collections::BTreeMap, fs::File, path::Path, sync::Arc}; @@ -33,6 +34,7 @@ pub fn generate_cues(cache: &Cache, path: &Path) -> Result<Arc<StatsAndCues>> { cache.cache_memory( &format!("media/generated-cues-v2/{}.json", HashKey(path)), move || { + info!("generating cues for {path:?}"); let media = File::open(path)?; let mut media = create_demuxer_autodetect(Box::new(media))? .ok_or(anyhow!("media format unknown"))?; @@ -73,7 +75,7 @@ pub fn generate_cues(cache: &Cache, path: &Path) -> Result<Arc<StatsAndCues>> { .clusters += 1; } } - + info!("writing {} cues", cues.len()); Ok(StatsAndCues { stats, cues }) }, ) |