Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Let a finished book leave the card and the Absorbing shelf when it was loaded at launch

Barnabasee0ff2bf6ac9
diff --git a/lib/services/audio_player_service.dart b/lib/services/audio_player_service.dart
index 078982bc..b04d4328 100644
--- a/lib/services/audio_player_service.dart
+++ b/lib/services/audio_player_service.dart
@@ -6181,6 +6181,12 @@ class AudioPlayerService extends ChangeNotifier {
displayTitle: pendingSession.title,
displayAuthor: pendingSession.author,
);
+ // The loadOnly playItem returned before _setupSync, so this session
+ // has no completion listener, no position sync, no EQ attach and no
+ // stats accrual yet. Without it a hot-loaded book that plays to the
+ // end just sits there: completed arrives, nobody reacts, the card
+ // stays until a manual stop and the book is never marked finished.
+ _setupSync();
}
}
// A seek while paused (user, or the socket adopting another device's