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

@@ -8,6 +8,9 @@
@foreach ($dlList as $hdl)
@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>

View File

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

View File

@@ -1,5 +1,16 @@
@guest
@php $download = $episode->getDownloadByType('FHD'); @endphp
@isset($download)
@include('modals.partials.download-captcha')
@else
<p class="text-gray-800 dark:text-gray-200 font-bold">
<i class="fa-solid fa-lock pr-[4px] text-red-600"></i> FHD
</p>
<p class="text-gray-800 dark:text-gray-200">
Unavailable.
</p>
@endisset
@if ($episode->interpolated)
<br>