Explorar o código

VLCMediaLibraryManager: Reactivate thumbnail guard

The thumbnail path issue has been fixed with VLCMediaLibraryKit 0.0.7
Soomin Lee %!s(int64=6) %!d(string=hai) anos
pai
achega
312ab906b0
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      SharedSources/VLCMediaLibraryManager.swift

+ 1 - 4
SharedSources/VLCMediaLibraryManager.swift

@@ -199,10 +199,7 @@ extension VLCMediaLibraryManager {
 extension VLCMediaLibraryManager {
     func requestThumbnail(for media: [VLCMLMedia]) {
         media.forEach() {
-                // FIXME: Remind Chouquette! In the medialibrary thumbnails uses absolute paths. Workaround:
-                //         - Regenerate path is a thumbnail is detected
-                //         - Request a new thumbnail
-                // if $0.isThumbnailGenerated() { return }
+            guard !$0.isThumbnailGenerated() else { return }
 
             if !medialib.requestThumbnail(for: $0) {
                 assertionFailure("VLCMediaLibraryManager: Failed to generate thumbnail for: \($0.identifier())")