소스 검색

MediaLibraryService: Add forceRescan helper

Edgar Fouillet 5 년 전
부모
커밋
e3cd59fdf3
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      SharedSources/MediaLibraryService.swift

+ 4 - 0
SharedSources/MediaLibraryService.swift

@@ -332,6 +332,10 @@ extension MediaLibraryService {
         medialib.reload()
     }
 
+    @objc func forceRescan() {
+        medialib.forceRescan()
+    }
+
     @objc func reindexAllMediaForSpotlight() {
         media(ofType: .video).forEach { $0.updateCoreSpotlightEntry() }
         media(ofType: .audio).forEach { $0.updateCoreSpotlightEntry() }