Commit 312ab906 authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: Reactivate thumbnail guard

The thumbnail path issue has been fixed with VLCMediaLibraryKit 0.0.7
parent c961e91d
...@@ -199,10 +199,7 @@ extension VLCMediaLibraryManager { ...@@ -199,10 +199,7 @@ extension VLCMediaLibraryManager {
extension VLCMediaLibraryManager { extension VLCMediaLibraryManager {
func requestThumbnail(for media: [VLCMLMedia]) { func requestThumbnail(for media: [VLCMLMedia]) {
media.forEach() { media.forEach() {
// FIXME: Remind Chouquette! In the medialibrary thumbnails uses absolute paths. Workaround: guard !$0.isThumbnailGenerated() else { return }
// - Regenerate path is a thumbnail is detected
// - Request a new thumbnail
// if $0.isThumbnailGenerated() { return }
if !medialib.requestThumbnail(for: $0) { if !medialib.requestThumbnail(for: $0) {
assertionFailure("VLCMediaLibraryManager: Failed to generate thumbnail for: \($0.identifier())") assertionFailure("VLCMediaLibraryManager: Failed to generate thumbnail for: \($0.identifier())")
......
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