summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-10-15 11:21:59 +0200
committerMichał Cichoń <michcic@gmail.com>2018-10-30 13:08:55 +0100
commit774b670b63c780be0a0dd104c3f06cbe9690fe3d (patch)
tree80284d21f0aa1ffdae1308370a006e6cf12f708e
parent8c4f7e67cac5c2806617983d27a8a67460105bfd (diff)
downloadpianobar-windows-774b670b63c780be0a0dd104c3f06cbe9690fe3d.tar.gz
pianobar-windows-774b670b63c780be0a0dd104c3f06cbe9690fe3d.tar.bz2
pianobar-windows-774b670b63c780be0a0dd104c3f06cbe9690fe3d.zip
Increase max_retries default value
Back to default value before ff4f15214100d209f39e4ed85f47e572c8fe9289. It is used by the player as well and since 403’s are considered an “error” it must be larger than the number of files per playlist (4). See issue #672.
-rw-r--r--src/settings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/settings.c b/src/settings.c
index c8a413e..affb7f2 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -175,7 +175,8 @@ void BarSettingsRead (BarSettings_t *settings) {
settings->volume = 0;
settings->timeout = 30; /* seconds */
settings->gainMul = 1.0;
- settings->maxRetry = 3;
+ /* should be > 4, otherwise expired audio urls (403) can stop playback */
+ settings->maxRetry = 5;
settings->sortOrder = BAR_SORT_NAME_AZ;
settings->loveIcon = strdup (" <3");
settings->banIcon = strdup (" </3");