mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 18:15:01 +02:00
Small fixes
This commit is contained in:
parent
f9be51184d
commit
f76128c2b3
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue