give a bit tollerance to playlist validation

This commit is contained in:
jb-alvarado 2022-03-21 14:33:16 +01:00
parent 8cb9163691
commit 8ac58dbdad

View File

@ -37,7 +37,7 @@ pub async fn validate_playlist(playlist: Playlist, is_terminated: Arc<Mutex<bool
start_sec += item.out - item.seek;
}
if length > start_sec && !*is_terminated.lock().unwrap() {
if length > start_sec + 1.0 && !*is_terminated.lock().unwrap() {
error!(
"Playlist from <yellow>{date}</> not long enough, <yellow>{}</> needed!",
sec_to_time(length - start_sec),