mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-25 21:40:13 -06: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();
|
||||
}
|
||||
|
||||
|
||||
BIN
public/img/no-video.png
Normal file
BIN
public/img/no-video.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user