diff options
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index f5c100f6ea..7321e9df49 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -395,6 +395,10 @@ static void tagtree_unbuffer_event(struct mp3entry *id3, bool last_track) | |||
395 | 395 | ||
396 | playcount++; | 396 | playcount++; |
397 | 397 | ||
398 | lastplayed = tagcache_increase_serial(); | ||
399 | if (lastplayed < 0) | ||
400 | return; | ||
401 | |||
398 | /* Ignore the last 15s (crossfade etc.) */ | 402 | /* Ignore the last 15s (crossfade etc.) */ |
399 | playtime += MIN(id3->length, id3->elapsed + 15 * 1000); | 403 | playtime += MIN(id3->length, id3->elapsed + 15 * 1000); |
400 | 404 | ||
@@ -427,6 +431,17 @@ bool tagtree_export(void) | |||
427 | return false; | 431 | return false; |
428 | } | 432 | } |
429 | 433 | ||
434 | bool tagtree_import(void) | ||
435 | { | ||
436 | gui_syncsplash(0, true, str(LANG_WAIT)); | ||
437 | if (!tagcache_import_changelog()) | ||
438 | { | ||
439 | gui_syncsplash(HZ*2, true, str(LANG_FAILED)); | ||
440 | } | ||
441 | |||
442 | return false; | ||
443 | } | ||
444 | |||
430 | void tagtree_init(void) | 445 | void tagtree_init(void) |
431 | { | 446 | { |
432 | int fd; | 447 | int fd; |