Fix no filesize for 4k48fps

This commit is contained in:
2025-09-19 14:07:54 +02:00
parent 2abba0c2b7
commit 546b506d58

View File

@@ -42,7 +42,11 @@ class GetFileSizeFromCDN implements ShouldQueue
// Generate encrypted file path and expiration
$endpoint = config('hstream.download_domain_4k')[0];
$serverPath = $download->type === 'UHD' ? 'hentai/' : 'hentai-1080p/';
$serverPath = 'hentai/';
if ($download->type === 'FHD' || $download->type === 'FHDi') {
$serverPath = 'hentai-1080p/';
}
$file = Crypt::encryptString($serverPath.$download->url);
$expire = Crypt::encryptString(Carbon::now()->addHours(6)->toDateTimeString());