diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2013-05-06 17:27:27 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2013-05-13 19:21:58 +0200 |
commit | bf6191b00825c4631312cf2446fd7b181abb7e1f (patch) | |
tree | 7bc8362eab926f8cd16a9398fb39efc3f31dbfa4 /src/settings.c | |
parent | ea4324bbb6d3388c39f80906c85501feee3cb541 (diff) | |
download | pianobar-bf6191b00825c4631312cf2446fd7b181abb7e1f.tar.gz pianobar-bf6191b00825c4631312cf2446fd7b181abb7e1f.tar.bz2 pianobar-bf6191b00825c4631312cf2446fd7b181abb7e1f.zip |
Permit multiple HTTP errors in a row
1) Make sure that multiple bad playlists in a row don’t result in a
temporary ban
2) Ignore songs skipped because the playlist timed out after pausing for
too long
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index e801de8..d90a7d7 100644 --- a/src/settings.c +++ b/src/settings.c @@ -125,6 +125,7 @@ void BarSettingsRead (BarSettings_t *settings) { settings->autoselect = true; settings->history = 5; settings->volume = 0; + settings->maxPlayerErrors = 5; settings->sortOrder = BAR_SORT_NAME_AZ; settings->loveIcon = strdup (" <3"); settings->banIcon = strdup (" </3"); @@ -243,6 +244,8 @@ void BarSettingsRead (BarSettings_t *settings) { settings->eventCmd = strdup (val); } else if (streq ("history", key)) { settings->history = atoi (val); + } else if (streq ("max_player_errors", key)) { + settings->maxPlayerErrors = atoi (val); } else if (streq ("sort", key)) { size_t i; static const char *mapping[] = {"name_az", |