|
@@ -290,7 +290,9 @@ class MediaCategoryViewController: UICollectionViewController, UICollectionViewD
|
|
let mediaObject = isSearching ? searchDataSource.objectAtIndex(index: indexPath.row) : model.anyfiles[indexPath.row]
|
|
let mediaObject = isSearching ? searchDataSource.objectAtIndex(index: indexPath.row) : model.anyfiles[indexPath.row]
|
|
if let media = mediaObject as? VLCMLMedia {
|
|
if let media = mediaObject as? VLCMLMedia {
|
|
// FIXME: This should be done in the VModel, workaround for the release.
|
|
// FIXME: This should be done in the VModel, workaround for the release.
|
|
- services.medialibraryService.requestThumbnail(for: media)
|
|
|
|
|
|
+ if media.type() == .video {
|
|
|
|
+ services.medialibraryService.requestThumbnail(for: media)
|
|
|
|
+ }
|
|
assert(media.mainFile() != nil, "The mainfile is nil")
|
|
assert(media.mainFile() != nil, "The mainfile is nil")
|
|
mediaCell.media = media.mainFile() != nil ? media : nil
|
|
mediaCell.media = media.mainFile() != nil ? media : nil
|
|
} else {
|
|
} else {
|