mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-21 09:20:08 -05:00
@@ -202,7 +202,11 @@ class TorrentController extends Controller
|
||||
'platforms', ])
|
||||
->find($torrent->igdb);
|
||||
$link = collect($meta->videos)->take(1)->pluck('video_id');
|
||||
$trailer = 'https://www.youtube.com/embed/'.$link[0];
|
||||
if (isset($link[0])) {
|
||||
$trailer = 'https://www.youtube.com/embed/'.isset($link[0]);
|
||||
} else {
|
||||
$trailer = '/img/no-video.png';
|
||||
}
|
||||
$platforms = PlatformLogo::whereIn('id', collect($meta->platforms)->pluck('platform_logo')->toArray())->get();
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user