fix bug in ffmpeg playlist parsing & logs

This commit is contained in:
OMGeeky
2024-04-20 17:25:07 +02:00
parent cea7903d10
commit 0f8949f8bf
3 changed files with 4 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ pub(crate) async fn get_playlist_info(playlist_path: &PathBuf) -> Result<Playlis
total_duration = total_duration + duration;
} else if line.starts_with("#EXT-X-ENDLIST") {
break;
} else if lines.starts_with("#EXT") {
} else if line.starts_with("#EXT") {
trace!("unknown line in playlist: {}", line);
continue;
} else if let Some(duration) = last_duration {