Commit 8151661a authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: MediaLibraryObserver: Add media delete

parent 572b291c
......@@ -27,6 +27,9 @@ extension NSNotification {
@objc optional func medialibrary(_ medialibrary: VLCMediaLibraryManager,
didAddVideos videos: [VLCMLMedia])
@objc optional func medialibrary(_ medialibrary: VLCMediaLibraryManager,
didDeleteMediaWithIds ids: [NSNumber])
@objc optional func medialibrary(_ medialibrary: VLCMediaLibraryManager,
didAddShowEpisodes showEpisodes: [VLCMLMedia])
......@@ -181,6 +184,12 @@ extension VLCMediaLibraryManager: VLCMediaLibraryDelegate {
}
}
func medialibrary(_ medialibrary: VLCMediaLibrary, didDeleteMediaWithIds mediaIds: [NSNumber]) {
for observer in observers {
observer.value.observer?.medialibrary?(self, didDeleteMediaWithIds: mediaIds)
}
}
func medialibrary(_ medialibrary: VLCMediaLibrary, didAdd artists: [VLCMLArtist]) {
for observer in observers {
observer.value.observer?.medialibrary?(self, didAddArtists: artists)
......
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