Skip to content

Commit

Permalink
Update Vimeo.php
Browse files Browse the repository at this point in the history
fixing vimeo thumbnail
  • Loading branch information
jeanjar authored Sep 14, 2021
1 parent 776ffdf commit ab7e283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static function getSimpleThumbnail($id)
{
$protocol = getProtocol();
$data = json_decode(file_get_contents(sprintf('%s://vimeo.com/api/v2/video/%s.json', $protocol, $id)), true);
return f($data, 'thumbnail_large');
return f($data[0], 'thumbnail_large');
}

public static function render($url, $params = [])
Expand Down Expand Up @@ -47,4 +47,4 @@ public static function render($url, $params = [])
}
return '<iframe src="' . $protocol . '://player.vimeo.com/video/' . $id . '"' . $realParams . '></iframe>';
}
}
}

0 comments on commit ab7e283

Please sign in to comment.