summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-23 15:02:12 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-23 15:02:12 +0200
commit9e7903867979ebbf485c61cc95b69bd5ed1bfedb (patch)
tree37c3c3de620bfe10e82b2f78fd3a24470d33cddd /src
parentf24af088f51effac4f77a47a3ef14288e303998c (diff)
downloadpianobar-9e7903867979ebbf485c61cc95b69bd5ed1bfedb.tar.gz
pianobar-9e7903867979ebbf485c61cc95b69bd5ed1bfedb.tar.bz2
pianobar-9e7903867979ebbf485c61cc95b69bd5ed1bfedb.zip
client/wardrobe: Fix scrobbling time issue
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index d198ac3..f08adeb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -56,6 +56,7 @@ PianoStation_t *BarUiSelectStation (PianoHandle_t *ph) {
i++;
}
printf ("Press c to abort.\n");
+
if (scanf ("%i", &i) < 1) {
return NULL;
}
@@ -293,8 +294,6 @@ int main (int argc, char **argv) {
}
}
if (curSong != NULL) {
- time_t currTime = time (NULL);
- time_t currGmTime = mktime (gmtime (&currTime));
printf ("\"%s\" by \"%s\"%s\n", curSong->title,
curSong->artist, (curSong->rating ==
PIANO_RATE_LOVE) ? " (Loved)" : "");
@@ -303,7 +302,7 @@ int main (int argc, char **argv) {
WardrobeSongInit (&scrobbleSong);
scrobbleSong.artist = strdup (curSong->artist);
scrobbleSong.title = strdup (curSong->title);
- scrobbleSong.started = currGmTime;
+ scrobbleSong.started = time (NULL);
/* FIXME: why do we need to zero everything again? */
memset (&player, 0, sizeof (player));