From ce6c637dcf1e4d267a42a69431f5d3d317ab4c90 Mon Sep 17 00:00:00 2001 From: Alba Date: Mon, 16 Dec 2024 23:14:15 +0100 Subject: [PATCH 1/2] TTK-27425: Show image raw profile for all images --- src/Pumukit/EncoderBundle/Services/ProfileService.php | 2 +- src/Pumukit/EncoderBundle/Services/ProfileValidator.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Pumukit/EncoderBundle/Services/ProfileService.php b/src/Pumukit/EncoderBundle/Services/ProfileService.php index 8a5e4920c..30e8e0c2a 100644 --- a/src/Pumukit/EncoderBundle/Services/ProfileService.php +++ b/src/Pumukit/EncoderBundle/Services/ProfileService.php @@ -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']; }); } } diff --git a/src/Pumukit/EncoderBundle/Services/ProfileValidator.php b/src/Pumukit/EncoderBundle/Services/ProfileValidator.php index ef9477546..bd05b295a 100644 --- a/src/Pumukit/EncoderBundle/Services/ProfileValidator.php +++ b/src/Pumukit/EncoderBundle/Services/ProfileValidator.php @@ -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'; } From 016005f5d83f156dd7208d48d6aec7e8ad761ee8 Mon Sep 17 00:00:00 2001 From: Alba Date: Tue, 17 Dec 2024 10:58:06 +0100 Subject: [PATCH 2/2] TTK-27425: Remove image_broadcastable profile from target profiles --- config/packages/encoder.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/packages/encoder.yaml b/config/packages/encoder.yaml index 168d2c8e5..f090d8486 100644 --- a/config/packages/encoder.yaml +++ b/config/packages/encoder.yaml @@ -216,7 +216,7 @@ pumukit_encoder: PUCHWEBTV: audio: "audio_broadcastable" video: "video_broadcastable video_broadcastable_dynamic_quality" - image: "image_broadcastable image_raw_broadcastable" + image: "image_raw_broadcastable" document: "document_broadcastable" PUCHPODCAST: audio: "audio_broadcastable"