A cross platform Audiobookshelf client for Android and iOS
Dart
Reduce server progress sync from 15s to 60s for battery
Nathan Poulson8aedfae1c315
diff --git a/lib/services/audio_player_service.dart b/lib/services/audio_player_service.dartindex 91cd3755..6c49ed7c 100644--- a/lib/services/audio_player_service.dart+++ b/lib/services/audio_player_service.dart@@ -2132,8 +2132,8 @@ class AudioPlayerService extends ChangeNotifier {_lastSyncSecond = sec;_saveProgressLocal(absolutePos);- // Also sync to server every 15 seconds (unless manual offline)- if (sec % 15 == 0) {+ // Also sync to server every 60 seconds (unless manual offline)+ if (sec % 60 == 0) {final prefs = await SharedPreferences.getInstance();final manualOffline = prefs.getBool('manual_offline_mode') ?? false;