From 320d9918ccd75a08590e66939b6809beed1fd905 Mon Sep 17 00:00:00 2001 From: jellyfin-bot Date: Thu, 17 Oct 2024 17:31:47 +0000 Subject: [PATCH 1/4] Bump build version --- Makefile | 2 +- manifest | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1a69b6e65..05e0611f0 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # If you want to get_images, you'll also need convert from ImageMagick ########################################################################## -VERSION := 2.2.0 +VERSION := 2.2.1 ## usage diff --git a/manifest b/manifest index 491d15ee6..44cc38315 100644 --- a/manifest +++ b/manifest @@ -3,7 +3,7 @@ title=Jellyfin major_version=2 minor_version=2 -build_version=0 +build_version=1 ### Main Menu Icons / Channel Poster Artwork diff --git a/package-lock.json b/package-lock.json index a02dda7bc..5c90afad5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jellyfin-roku", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jellyfin-roku", - "version": "2.2.0", + "version": "2.2.1", "hasInstallScript": true, "license": "GPL-2.0", "dependencies": { diff --git a/package.json b/package.json index 99344c0bb..6579bae47 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jellyfin-roku", "type": "module", - "version": "2.2.0", + "version": "2.2.1", "description": "Roku app for Jellyfin media server", "dependencies": { "@rokucommunity/bslib": "0.1.1", From 0f2e40571fcda7ca697c249acae7f73f6a9c4fd7 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Thu, 17 Oct 2024 22:16:32 -0400 Subject: [PATCH 2/4] validate data to prevent crash --- source/api/Items.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/api/Items.bs b/source/api/Items.bs index 3f6319437..65ed564b9 100644 --- a/source/api/Items.bs +++ b/source/api/Items.bs @@ -47,8 +47,8 @@ function ItemPostPlaybackInfo(id as string, mediaSourceId = "" as string, audioT ' force the server to transcode AAC profiles we don't support to MP3 instead of the usual AAC ' TODO: Remove this after server adds support for transcoding AAC from one profile to another - if LCase(selectedAudioStream.Codec) = "aac" - if LCase(selectedAudioStream.Profile) = "main" or LCase(selectedAudioStream.Profile) = "he-aac" + if selectedAudioStream.Codec <> invalid and LCase(selectedAudioStream.Codec) = "aac" + if selectedAudioStream.Profile <> invalid and LCase(selectedAudioStream.Profile) = "main" or LCase(selectedAudioStream.Profile) = "he-aac" for each rule in deviceProfile.TranscodingProfiles if rule.Container = "ts" or rule.Container = "mp4" if rule.AudioCodec = "aac" From 3700d87c0ef3f7e6c57e6f1f6396d8cb7cd7c5b9 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Fri, 18 Oct 2024 17:57:21 -0400 Subject: [PATCH 3/4] don't show resumable items in Next Up --- components/home/LoadItemsTask.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/home/LoadItemsTask.bs b/components/home/LoadItemsTask.bs index b918a8df7..893b826e7 100644 --- a/components/home/LoadItemsTask.bs +++ b/components/home/LoadItemsTask.bs @@ -73,6 +73,7 @@ sub loadItems() params["DisableFirstEpisode"] = false params["limit"] = 24 params["EnableTotalRecordCount"] = false + params["EnableResumable"] = false maxDaysInNextUp = userSettings["ui.details.maxdaysnextup"].ToInt() if isValid(maxDaysInNextUp) From 895f569419508d4fd85c3600487875773d080ead Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Sat, 19 Oct 2024 10:34:13 -0400 Subject: [PATCH 4/4] improve support for av1 video --- source/utils/deviceCapabilities.bs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/source/utils/deviceCapabilities.bs b/source/utils/deviceCapabilities.bs index 384838972..44cc05d66 100644 --- a/source/utils/deviceCapabilities.bs +++ b/source/utils/deviceCapabilities.bs @@ -301,21 +301,11 @@ function getTranscodingProfiles() as object end if ' AV1 - for each container in transcodingContainers - if di.CanDecodeVideo({ Codec: "av1", Container: container }).Result - if container = "mp4" - ' check for codec string before adding it - if mp4VideoCodecs.Instr(0, ",av1") = -1 - mp4VideoCodecs = mp4VideoCodecs + ",av1" - end if - else if container = "ts" - ' check for codec string before adding it - if tsVideoCodecs.Instr(0, ",av1") = -1 - tsVideoCodecs = tsVideoCodecs + ",av1" - end if - end if - end if - end for + ' CanDecodeVideo() returns false for AV1 when the container is provided + ' Manually add AV1 to the mp4VideoCodecs list if support is detected + if di.CanDecodeVideo({ Codec: "av1" }).Result + mp4VideoCodecs = mp4VideoCodecs + ",av1" + end if ' AUDIO CODECS for each container in transcodingContainers