mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 22:04:08 +02:00
Handle deleting library items
This commit is contained in:
@@ -44,7 +44,7 @@ public class AbsAudioPlayer: CAPPlugin {
|
||||
|
||||
let isLocalItem = libraryItemId?.starts(with: "local_") ?? false
|
||||
if (isLocalItem) {
|
||||
let item = Database.shared.getLocalLibraryItem(localLibraryItem: libraryItemId!)
|
||||
let item = Database.shared.getLocalLibraryItem(localLibraryItemId: libraryItemId!)
|
||||
// TODO: Logic required for podcasts here
|
||||
let playbackSession = item?.getPlaybackSession(episode: nil)
|
||||
PlayerHandler.startPlayback(session: playbackSession!, playWhenReady: playWhenReady, playbackRate: playbackRate)
|
||||
|
||||
Reference in New Issue
Block a user