Skip to content

Commit

Permalink
TTK-27425: Show image raw profile for all images
Browse files Browse the repository at this point in the history
  • Loading branch information
albacodina committed Dec 16, 2024
1 parent bad9060 commit ce6c637
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/Pumukit/EncoderBundle/Services/ProfileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,6 @@ private function imageRawProfiles(): array

private function imageGenericProfiles(): array
{
return array_filter($this->profiles, function ($profile) { return isset($profile['image']) && true === $profile['image'] && false === $profile['master'] && !str_contains($profile['tags'], 'raw'); });
return array_filter($this->profiles, function ($profile) { return isset($profile['image']) && true === $profile['image'] && false === $profile['master']; });
}
}
4 changes: 0 additions & 4 deletions src/Pumukit/EncoderBundle/Services/ProfileValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ public function searchBestProfileForFile(string $genericProfile, string $pathFil
}

if (str_contains($mimeType, 'audio/')) {
if ('broadcastable' === $genericProfile) {
return 'audio_broadcastable';
}

return 'master_copy';
}

Expand Down

0 comments on commit ce6c637

Please sign in to comment.