mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-28 13:58:23 +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() {
|
func invokeMetadataUpdate() {
|
||||||
if !shouldFetchCover() && audiobook.artworkUrl != nil {
|
if !shouldFetchCover() || audiobook.artworkUrl == nil {
|
||||||
setMetadata(nil)
|
setMetadata(nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,6 @@ class AudioPlayer: NSObject {
|
||||||
guard let playerStatus = AVPlayerItem.Status(rawValue: (change?[.newKey] as? Int ?? -1)) else { return }
|
guard let playerStatus = AVPlayerItem.Status(rawValue: (change?[.newKey] as? Int ?? -1)) else { return }
|
||||||
|
|
||||||
if playerStatus == .readyToPlay {
|
if playerStatus == .readyToPlay {
|
||||||
NSLog("pain \(self.audiobook.startTime)")
|
|
||||||
updateNowPlaying()
|
updateNowPlaying()
|
||||||
|
|
||||||
self.status = 0
|
self.status = 0
|
||||||
|
|
|
@ -142,7 +142,7 @@ public class MyNativeAudio: CAPPlugin {
|
||||||
}
|
}
|
||||||
@objc func getStreamSyncData(_ call: CAPPluginCall) {
|
@objc func getStreamSyncData(_ call: CAPPluginCall) {
|
||||||
if self.currentPlayer == nil {
|
if self.currentPlayer == nil {
|
||||||
call.resolve([ "isPlaying": false as Any, "lastPauseTime": 0, "id": nil ])
|
call.resolve([ "isPlaying": false, "lastPauseTime": 0, "id": nil ])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue