diff --git a/media.views.inc b/media.views.inc
index 9d116bf..2918028 100644
--- a/media.views.inc
+++ b/media.views.inc
@@ -66,7 +66,11 @@ function template_preprocess_media_views_view_media_browser(&$vars) {
   foreach ($vars['rows'] as $index => $row) {
     // The Search API module returns the row in a slightly different format,
     // so convert it to the format that the normal file_managed table returns.
-    if (!empty($row->entity->fid)) {
+    if (!empty($row->_entity_properties['fid'])) {
+      $vars['rows'][$index]->fid = $row->_entity_properties['fid'];
+    }
+    // Support older versions of Search API, returning results in this format.
+    elseif (!empty($row->entity->fid)) {
       $vars['rows'][$index]->fid = $row->entity->fid;
     }
     $fids[$index] = $row->fid;
