mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 03:01:34 +00:00
Make webp default format for images
This commit is contained in:
@@ -292,7 +292,7 @@ class ReleaseProcessor
|
||||
$fileLocation = $context->tmpPath.'samplepicture.jpg';
|
||||
File::put($fileLocation, $result['data']);
|
||||
|
||||
if ($this->mediaService->isJpegData($fileLocation)
|
||||
if ($this->mediaService->isValidImage($fileLocation)
|
||||
&& $this->mediaService->getJPGSample($fileLocation, $context->release->guid)
|
||||
) {
|
||||
$context->markFound('jpgSample');
|
||||
|
||||
Reference in New Issue
Block a user