Skip to content

Commit

Permalink
fix: Set didAllSetRelay when meta has data
Browse files Browse the repository at this point in the history
  • Loading branch information
yoheimuta committed Jul 23, 2020
1 parent 509e8ec commit edd83c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RxMusicPlayer/RxMusicPlayerItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ open class RxMusicPlayerItem: NSObject {
self.album = album
self.artist = artist
self.artwork = artwork
didAllSetRelay.accept(true)

if duration != nil || lyrics != nil || title != nil ||
album != nil || artist != nil || artist != nil {
didAllSetRelay.accept(true)
}
}

fileprivate mutating func set(metaItem item: AVMetadataItem) {
Expand Down

0 comments on commit edd83c8

Please sign in to comment.