Temp fix call on null for removed downloads (dmca)
This commit is contained in:
@@ -6,8 +6,11 @@
|
|||||||
|
|
||||||
<div class="flex flex-wrap justify-around">
|
<div class="flex flex-wrap justify-around">
|
||||||
@foreach ($dlList as $hdl)
|
@foreach ($dlList as $hdl)
|
||||||
@php
|
@php
|
||||||
$download = $hdl->getDownloadByType('FHD');
|
$download = $hdl->getDownloadByType('FHD');
|
||||||
|
@endphp
|
||||||
|
@isset($download)
|
||||||
|
@php
|
||||||
$downloadURL = $dlDomainsBackup[array_rand($dlDomainsBackup)].'/'.$download->url;
|
$downloadURL = $dlDomainsBackup[array_rand($dlDomainsBackup)].'/'.$download->url;
|
||||||
$background = 'bg-green-600';
|
$background = 'bg-green-600';
|
||||||
@endphp
|
@endphp
|
||||||
@@ -20,6 +23,11 @@
|
|||||||
:fill-numbers="$fillNumbers"
|
:fill-numbers="$fillNumbers"
|
||||||
:file-size="$download->getFileSize()"
|
:file-size="$download->getFileSize()"
|
||||||
:background="$background">
|
: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
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,5 +1,9 @@
|
|||||||
@php
|
@php
|
||||||
$download = $hdl->getDownloadByType('FHD');
|
$download = $hdl->getDownloadByType('FHD');
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@isset($download)
|
||||||
|
@php
|
||||||
$downloadURL = $dldomains[array_rand($dldomains)].'/'.$download->url;
|
$downloadURL = $dldomains[array_rand($dldomains)].'/'.$download->url;
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@@ -9,4 +13,9 @@
|
|||||||
:download-count="$download->count"
|
:download-count="$download->count"
|
||||||
:episode-number="$hdl->episode"
|
:episode-number="$hdl->episode"
|
||||||
:fill-numbers="$fillNumbers"
|
: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
|
@@ -1,5 +1,16 @@
|
|||||||
@guest
|
@guest
|
||||||
|
|
||||||
|
@php $download = $episode->getDownloadByType('FHD'); @endphp
|
||||||
|
@isset($download)
|
||||||
@include('modals.partials.download-captcha')
|
@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)
|
@if ($episode->interpolated)
|
||||||
<br>
|
<br>
|
||||||
|
Reference in New Issue
Block a user