Fix no filesize for 4k48fps
This commit is contained in:
@@ -42,7 +42,11 @@ class GetFileSizeFromCDN implements ShouldQueue
|
|||||||
|
|
||||||
// Generate encrypted file path and expiration
|
// Generate encrypted file path and expiration
|
||||||
$endpoint = config('hstream.download_domain_4k')[0];
|
$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);
|
$file = Crypt::encryptString($serverPath.$download->url);
|
||||||
$expire = Crypt::encryptString(Carbon::now()->addHours(6)->toDateTimeString());
|
$expire = Crypt::encryptString(Carbon::now()->addHours(6)->toDateTimeString());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user