give a bit tollerance to playlist validation
This commit is contained in:
parent
8cb9163691
commit
8ac58dbdad
@ -37,7 +37,7 @@ pub async fn validate_playlist(playlist: Playlist, is_terminated: Arc<Mutex<bool
|
|||||||
start_sec += item.out - item.seek;
|
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!(
|
error!(
|
||||||
"Playlist from <yellow>{date}</> not long enough, <yellow>{}</> needed!",
|
"Playlist from <yellow>{date}</> not long enough, <yellow>{}</> needed!",
|
||||||
sec_to_time(length - start_sec),
|
sec_to_time(length - start_sec),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user