From c5f7857b710f4fd406fff01d855a36f458d1b950 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Thu, 17 Oct 2024 08:15:56 +1100 Subject: [PATCH] Stop adding response profile to device profile ResponseProfile is no longer part of the Jellyfin API --- src/components/deviceprofileBuilder.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/components/deviceprofileBuilder.ts b/src/components/deviceprofileBuilder.ts index faab4a8..5c61b9c 100644 --- a/src/components/deviceprofileBuilder.ts +++ b/src/components/deviceprofileBuilder.ts @@ -4,7 +4,6 @@ import type { DeviceProfile, DirectPlayProfile, ProfileCondition, - ResponseProfile, SubtitleProfile, TranscodingProfile } from '@jellyfin/sdk/lib/generated-client'; @@ -73,21 +72,6 @@ function getContainerProfiles(): Array { return []; } -/** - * Get response profiles - * @returns Response profiles. - */ -function getResponseProfiles(): Array { - // This seems related to DLNA, it might not be needed? - return [ - { - Container: 'm4v', - MimeType: 'video/mp4', - Type: DlnaProfileType.Video - } - ]; -} - /** * Get direct play profiles * @returns Direct play profiles. @@ -422,7 +406,6 @@ export function getDeviceProfile(options: ProfileOptions): DeviceProfile { profile.ContainerProfiles = getContainerProfiles(); profile.CodecProfiles = getCodecProfiles(); profile.SubtitleProfiles = getSubtitleProfiles(); - profile.ResponseProfiles = getResponseProfiles(); return profile; }