diff options
author | waker <wakeroid@gmail.com> | 2009-08-27 23:03:00 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-27 23:03:00 +0200 |
commit | 81d1b50a3bd28099b784e5b2a14295e715a48d01 (patch) | |
tree | c0b51d15a92d17ca79b2195fe6cf45d6b56b1243 /playlist.c | |
parent | be13f4e8c6ab99401f6eda6f7b91278c7fef3d47 (diff) |
lastfm submission works
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -25,6 +25,7 @@ #include <sys/stat.h> #include <unistd.h> #include <assert.h> +#include <time.h> #include "playlist.h" #include "codec.h" #include "streamer.h" @@ -608,8 +609,9 @@ pl_set_current (playItem_t *it) { streamer_reset (0); } if (it) { - pl_item_copy (&playlist_current, it); it->played = 1; + it->started_timestamp = time (NULL); + pl_item_copy (&playlist_current, it); } codec_unlock (); if (it) { |