Commit 50397c0c authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: Update to medialibrary changes

parent 652a9258
......@@ -22,7 +22,7 @@ extension NSNotification {
@objc protocol MediaLibraryObserver: class {
// Video
@objc optional func medialibrary(_ medialibrary: VLCMediaLibraryManager,
didUpdateVideo video: [VLCMLMedia])
didModifyVideo video: [VLCMLMedia])
@objc optional func medialibrary(_ medialibrary: VLCMediaLibraryManager,
didDeleteMediaWithIds ids: [NSNumber])
......@@ -235,8 +235,8 @@ extension VLCMediaLibraryManager: VLCMediaLibraryDelegate {
}
}
func medialibrary(_ medialibrary: VLCMediaLibrary, didUpdateMedia media: [VLCMLMedia]) {
print("VLCMediaLibraryDelegate: Did update media: \(media), with count: \(media.count)")
func medialibrary(_ medialibrary: VLCMediaLibrary, didModifyMedia media: [VLCMLMedia]) {
print("VLCMediaLibraryDelegate: Did modift media: \(media), with count: \(media.count)")
let showEpisodes = media.filter {( $0.subtype() == .showEpisode )}
let albumTrack = media.filter {( $0.subtype() == .albumTrack )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment