Add an indicator for v2 releases in the download popup #7

This commit is contained in:
2026-05-26 14:36:21 +02:00
parent 2f3f0edc30
commit 5dc1bff60c
5 changed files with 29 additions and 5 deletions
@@ -10,6 +10,7 @@
$now = \Illuminate\Support\Carbon::now();
$expire = \Illuminate\Support\Facades\Crypt::encryptString($now->addHours(6));
$file = \Illuminate\Support\Facades\Crypt::encryptString('hentai/'.$download->url);
$version = str_contains($download->url, 'v2') ? 'v2' : '';
$downloadURL = $dlpdomains[array_rand($dlpdomains)].'/download/'.$file.'/'.$expire;
@endphp
@@ -20,5 +21,6 @@
:download-count="$download->count"
:episode-number="$hdl->episode"
:fill-numbers="$fillNumbers"
:file-size="$download->getFileSize()">
:file-size="$download->getFileSize()"
:version="$version">
@endif