Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Use a library's custom skip amounts in Android Auto when playback starts in the car

Barnabas9d101b026e55
diff --git a/lib/services/android_auto_service.dart b/lib/services/android_auto_service.dart
index 94c8654f..a34ab0a9 100644
--- a/lib/services/android_auto_service.dart
+++ b/lib/services/android_auto_service.dart
@@ -490,6 +490,7 @@ class AndroidAutoService {
currentTime: localPos > 0 ? localPos : null,
episodeId: episodeId,
showId: showId,
+ libraryId: dl.libraryId,
));
debugPrint('[AutoBrowse] Download entry: ${dl.title} cover=$coverUrl');
}
@@ -820,6 +821,7 @@ class AndroidAutoService {
duration: duration,
coverUrl: localCoverUri(id),
chapters: chapters,
+ libraryId: item['libraryId'] as String?,
);
}
@@ -1590,6 +1592,7 @@ class AndroidAutoService {
chapters: ep['chapters'] as List<dynamic>? ?? [],
episodeId: epId,
showId: showId,
+ libraryId: fullItem['libraryId'] as String? ?? libraryId,
));
}
return entries;