mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-07 12:28:50 +02:00
Small fixes
This commit is contained in:
@@ -183,7 +183,7 @@ class AudioPlayer: NSObject {
|
||||
}
|
||||
|
||||
func invokeMetadataUpdate() {
|
||||
if !shouldFetchCover() && audiobook.artworkUrl != nil {
|
||||
if !shouldFetchCover() || audiobook.artworkUrl == nil {
|
||||
setMetadata(nil)
|
||||
return
|
||||
}
|
||||
@@ -234,7 +234,6 @@ class AudioPlayer: NSObject {
|
||||
guard let playerStatus = AVPlayerItem.Status(rawValue: (change?[.newKey] as? Int ?? -1)) else { return }
|
||||
|
||||
if playerStatus == .readyToPlay {
|
||||
NSLog("pain \(self.audiobook.startTime)")
|
||||
updateNowPlaying()
|
||||
|
||||
self.status = 0
|
||||
|
||||
@@ -142,7 +142,7 @@ public class MyNativeAudio: CAPPlugin {
|
||||
}
|
||||
@objc func getStreamSyncData(_ call: CAPPluginCall) {
|
||||
if self.currentPlayer == nil {
|
||||
call.resolve([ "isPlaying": false as Any, "lastPauseTime": 0, "id": nil ])
|
||||
call.resolve([ "isPlaying": false, "lastPauseTime": 0, "id": nil ])
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user