From 131930f45b512c11e7c1848ad3284e6d759d6d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 3 Nov 2018 01:04:22 +0100 Subject: Increase playlist re-read pause --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 2f67593..a67e909 100644 --- a/main.go +++ b/main.go @@ -180,9 +180,9 @@ func urlProc(ctx context.Context, playlistURL string, out chan<- string) { return } } - // I expect this to be mainly driven by the buffered channel but - // a small (less than target duration) additional pause will not hurt. - time.Sleep(1 * time.Second) + // Media players will happily buffer the whole playlist at once, + // a small (less than target duration) additional pause is appropriate. + time.Sleep(3 * time.Second) } } -- cgit v1.2.3