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

@@ -1,5 +1,9 @@
@php
@php
$download = $hdl->getDownloadByType('FHD');
@endphp
@isset($download)
@php
$downloadURL = $dldomains[array_rand($dldomains)].'/'.$download->url;
@endphp
@@ -9,4 +13,9 @@
:download-count="$download->count"
:episode-number="$hdl->episode"
:fill-numbers="$fillNumbers"
:file-size="$download->getFileSize()">
:file-size="$download->getFileSize()">
@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