summaryrefslogtreecommitdiff
path: root/src/settings.c
AgeCommit message (Collapse)AuthorFilesLines
2018-04-07Add network timeouts and retriesLars-Dominik Braun1-3/+6
All network operations can time out now. API requests are retried up to three times (default). Replaces setting max_player_errors with max_retries, which is used for player and API. Adds timeout setting. Partially reverts 436a1d4012553a2f33d0e3a5180b3b5ae0378bdd and fixes (at least) issue #657. Thanks to @exarkun for testing.
2017-09-30Add tired rating to songLars-Dominik Braun1-0/+5
Now we can show a tired icon in the history. Closes #637.
2017-03-14Added gain_mul setting to soften effect of replaygain.Sean Greenslade1-0/+3
2016-10-29Replace getline() with fgets()Lars-Dominik Braun1-6/+9
Mac OS X 10.6 compatibility, fixes #572.
2016-10-15Support binding to a specific network interfaceblmpl1-0/+3
Closes #597.
2016-02-11Add default value for rpcTlsPortLars-Dominik Braun1-1/+1
Passing NULL to printf and the result to curl may or may not work. YMMV. Fixes #574.
2015-09-25settings: Fix config file parserLars-Dominik Braun1-7/+60
scanf’s %s matches non-whitespace characters only and thus ‘# foo = bar’ is parsed as ‘foo’, ‘bar’ and not ‘# foo’, ‘bar’ (as expected). Thus comments did not work if they a) started with a valid key and b) had a space between hash-sign and key. Fixes issue #526.
2015-08-10Move feature test macros to config.hLars-Dominik Braun1-5/+1
I removed most of the *BSD-related stuff, because I can’t test these. If this breaks your build, send me a patch please.
2015-08-04Add missing includeLars-Dominik Braun1-0/+1
2015-08-04Set ffmpeg proxyLars-Dominik Braun1-0/+5
The proxy config setting did not set ffmpeg’s http proxy previously. See issue #531.
2015-06-15Replace setting tls_fingerprint with ca_bundleLars-Dominik Braun1-13/+3
2014-11-22Expand ~ in event_command tooLars-Dominik Braun1-1/+1
2014-05-30settings: Support ~/ expansionLars-Dominik Braun1-29/+71
Only the simple ~/ expansion is supported right now, since ~user expansion does not make sense for per-user config files anyway. Closes #431 and #430. On my way to this solution I tried libconfuse and json-based config files. I’m not convinced yet one of these is the solution though…
2013-05-13Permit multiple HTTP errors in a rowLars-Dominik Braun1-0/+3
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
2012-11-30New default TLS fingerprintLars-Dominik Braun1-2/+2
Welcome to the post-CA world. Fixes #324.
2012-11-04New setting: Read RPC TLS portPierre Zurek1-0/+5
Useful for tuner-beta.savagebeast.com:8443. Closes #319.
2012-10-21New setting: Read password from external commandLars-Dominik Braun1-0/+3
Closes #314.
2012-09-24Fix fclose outside of file loopsk10801-6/+7
Closes #307.
2012-09-22Save station and volume to statefileLars-Dominik Braun1-138/+165
… and restore both on startup. To disable run `ln -sv /dev/null ~/.config/pianobar/state`. Setting an invalid autostart_station in the config file prevents automatic station selection on startup. Closes #305.
2012-06-09Duplicate line fix for keybindingsDylan Powers1-3/+0
Closes #275.
2012-06-09piano: Select quality instead of audio formatLars-Dominik Braun1-16/+8
Pandora limited the audio formats we can request explicitly. Don’t rely on this and use the formats available with the given partner credentials. Closes #271.
2012-05-07Add default RPC hostLars-Dominik Braun1-0/+3
Fixes last commit.
2012-05-07Configureable RPC hostLars-Dominik Braun1-0/+4
In case someone wants to use internal-tuner.pandora.com. See #243.
2012-05-04Lofi AAC supportLars-Dominik Braun1-0/+2
32kbit/s. Closes #233.
2012-05-04Revert "Add force_tls setting"Lars-Dominik Braun1-3/+0
This reverts commit 35763dea799c96361e288a10eab0fbd16c36e880. It does not work with the JSON API.
2012-05-01Don’t hardcode passwordsLars-Dominik Braun1-0/+28
It’s a bad idea to hardcode these, although playback does not work with non-android login yet.
2012-05-01piano: Move to JSON API (v5)Lars-Dominik Braun1-2/+2
In random order: Thanks to Chris Eby for his work on pithos, to an anonymous coward for sending me his Android client, to Alex Howard for sending me the webOS client, to ZigZagJoe for providing a temporary fix and thanks to everyone who sent Pandora a message. Although there are a few rough edges here and there this fixes #236.
2012-04-14Add force_tls settingLars-Dominik Braun1-0/+3
Use TLS for all actions when requested. Closes #234
2012-03-17Auto-select last remaining item of filtered listLars-Dominik Braun1-0/+3
See #231.
2011-11-11waitress: Fingerprint checkLars-Dominik Braun1-5/+13
Reduces memory usage, protects against 0wned CA's and avoids ca-bundle confusion. Closes #175
2011-11-09TLS is not optional any moreLars-Dominik Braun1-13/+0
2011-11-09Added TLS settingsLars-Dominik Braun1-0/+18
2011-08-29Customizeable list format (songs)Lars-Dominik Braun1-0/+5
Fixes #151
2011-08-23Configureable fifo pathLars-Dominik Braun1-0/+6
See #149.
2011-08-19Don’t remove whitespace from config valuesLars-Dominik Braun1-2/+3
Closes #148
2011-07-27Configureable %@ format stringLars-Dominik Braun1-0/+5
2011-07-14Defined _DARWIN_C_SOURCELars-Dominik Braun1-0/+1
Required to expose non-standard functions. Closes #138
2011-07-11Disable feature test macros on FreeBSDEitan Adler1-0/+2
Closes #136
2011-05-18Configureable format stringsLars-Dominik Braun1-2/+63
Closes #88
2011-02-26Rewrite input processingLars-Dominik Braun1-16/+9
2011-02-02Allow keyboard shortcuts to be disabledLars-Dominik Braun1-2/+6
Something like act_foobar = disabled disables the command foobar completely now. Useful if you don't use software volume control. See issue #78.
2010-12-27Change my email addressLars-Dominik Braun1-1/+1
Again. And hopefully the last time.
2010-12-27Use PATH_MAX from limits.hLars-Dominik Braun1-2/+3
2010-12-27Software volume controlLars-Dominik Braun1-2/+5
2010-12-04Show default icons if config file is missing.Lars-Dominik Braun1-8/+4
Bug introduced by 2b31c97de6fa541719cd26f9a61053cfc0e71203. "(null)" was shown instead of "<3" and "</3".
2010-11-21Replaced strcmp with streq macroLars-Dominik Braun1-16/+18
2010-11-21Show custom rating icon in upcoming/history song listLars-Dominik Braun1-0/+14
Closes issue #54
2010-07-30Use static const for large read-only arraysLars-Dominik Braun1-3/+3
2010-07-30Feature: Custom station sortingLars-Dominik Braun1-1/+17
Sort stations by name and/or isquickmix.
2010-05-09HTTP proxy supportLars-Dominik Braun1-0/+11
control_proxy pipes xmlrpc data through the proxy, this one is for the music too.