Temp fix call on null for removed downloads (dmca)

This commit is contained in:
2025-10-07 23:46:17 +02:00
parent bbbc4ac329
commit e717b2bd07
3 changed files with 31 additions and 3 deletions

View File

@@ -6,8 +6,11 @@
<div class="flex flex-wrap justify-around">
@foreach ($dlList as $hdl)
@php
@php
$download = $hdl->getDownloadByType('FHD');
@endphp
@isset($download)
@php
$downloadURL = $dlDomainsBackup[array_rand($dlDomainsBackup)].'/'.$download->url;
$background = 'bg-green-600';
@endphp
@@ -20,6 +23,11 @@
:fill-numbers="$fillNumbers"
:file-size="$download->getFileSize()"
:background="$background">
@else
<a class="inline-flex items-center ml-4 px-4 p-4 mt-4 cursor-not-allowed bg-gray-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150" id="downloadEpisode" alt="Kekw">
<i class="fa-solid fa-download mr-2"></i> Episode {{ $hdl->episode }} (Unavailable)
</a>
@endisset
@endforeach
</div>
</div>