summaryrefslogtreecommitdiff
path: root/src/settings.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-03-05 12:07:54 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-03-06 10:55:52 +0100
commit80ed3d8e31b212c3a9d1e6edf41f1112e8029b59 (patch)
tree97b1e03d35493dd13ca209ee3686bec84eb26025 /src/settings.c
parent3838e77238e383d6bea6496a7bc035702f320210 (diff)
downloadpianobar-80ed3d8e31b212c3a9d1e6edf41f1112e8029b59.tar.gz
pianobar-80ed3d8e31b212c3a9d1e6edf41f1112e8029b59.tar.bz2
pianobar-80ed3d8e31b212c3a9d1e6edf41f1112e8029b59.zip
wardrobe: Removed internal last.fm scrobbling library
Diffstat (limited to 'src/settings.c')
-rw-r--r--src/settings.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/settings.c b/src/settings.c
index 1136a3a..4ac2fea 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -74,8 +74,6 @@ void BarSettingsDestroy (BarSettings_t *settings) {
free (settings->controlProxy);
free (settings->username);
free (settings->password);
- free (settings->lastfmUser);
- free (settings->lastfmPassword);
free (settings->autostartStation);
free (settings->eventCmd);
memset (settings, 0, sizeof (*settings));
@@ -136,12 +134,6 @@ void BarSettingsRead (BarSettings_t *settings) {
settings->username = strdup (val);
} else if (strcmp ("password", key) == 0) {
settings->password = strdup (val);
- } else if (strcmp ("lastfm_user", key) == 0) {
- settings->lastfmUser = strdup (val);
- } else if (strcmp ("lastfm_password", key) == 0) {
- settings->lastfmPassword = strdup (val);
- } else if (strcmp ("lastfm_scrobble_percent", key) == 0) {
- settings->lastfmScrobblePercent = atoi (val);
} else if (memcmp ("act_", key, 4) == 0) {
/* keyboard shortcuts */
for (i = 0; i < BAR_KS_COUNT; i++) {
@@ -167,17 +159,5 @@ void BarSettingsRead (BarSettings_t *settings) {
}
}
- /* some checks */
- /* last.fm requests tracks to be played at least 50% */
- if (settings->lastfmScrobblePercent < 50 ||
- settings->lastfmScrobblePercent > 100) {
- settings->lastfmScrobblePercent = 50;
- }
-
- /* only scrobble tracks if username and password are set */
- if (settings->lastfmUser != NULL && settings->lastfmPassword != NULL) {
- settings->enableScrobbling = 1;
- }
-
fclose (configfd);
}