Playlist-level retry configuration
This commit is contained in:
@@ -176,6 +176,11 @@ func main() {
|
||||
os.Exit(2)
|
||||
}
|
||||
configuredPlaylist = playlist
|
||||
retryPolicy = resolveRetryPolicy(
|
||||
retryPolicy,
|
||||
flagSet.Changed("max-attempts"),
|
||||
configuredPlaylist,
|
||||
)
|
||||
}
|
||||
if args.VideoDomain == "" {
|
||||
args.VideoDomain = args.Domain
|
||||
@@ -815,6 +820,19 @@ func main() {
|
||||
"Failure behavior: %s",
|
||||
configuredPlaylist.OnFailure,
|
||||
))
|
||||
if retryPolicy.MaxAttempts == 0 {
|
||||
cimgui.Text("Retries: infinite")
|
||||
} else {
|
||||
cimgui.Text(fmt.Sprintf(
|
||||
"Attempts per entry: %d",
|
||||
retryPolicy.MaxAttempts,
|
||||
))
|
||||
}
|
||||
cimgui.Text(fmt.Sprintf(
|
||||
"Retry delay: %s to %s",
|
||||
retryPolicy.InitialDelay,
|
||||
retryPolicy.MaxDelay,
|
||||
))
|
||||
|
||||
if hasPlaylistSnapshot && playlistSnapshot.HasFailure {
|
||||
failure := playlistSnapshot.Failure
|
||||
|
||||
Reference in New Issue
Block a user