From d8c2f58da3f4fac9efe3c5d6bcd6462412301fc6 Mon Sep 17 00:00:00 2001 From: jellyfin-bot Date: Mon, 21 Oct 2024 16:11:53 +0000 Subject: [PATCH 1/3] 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 05e0611f0..e036d4121 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.1 +VERSION := 2.2.2 ## usage diff --git a/manifest b/manifest index 44cc38315..8f46b09a4 100644 --- a/manifest +++ b/manifest @@ -3,7 +3,7 @@ title=Jellyfin major_version=2 minor_version=2 -build_version=1 +build_version=2 ### Main Menu Icons / Channel Poster Artwork diff --git a/package-lock.json b/package-lock.json index 5c90afad5..0e16e4ae4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jellyfin-roku", - "version": "2.2.1", + "version": "2.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jellyfin-roku", - "version": "2.2.1", + "version": "2.2.2", "hasInstallScript": true, "license": "GPL-2.0", "dependencies": { diff --git a/package.json b/package.json index 6579bae47..e00d7e38d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jellyfin-roku", "type": "module", - "version": "2.2.1", + "version": "2.2.2", "description": "Roku app for Jellyfin media server", "dependencies": { "@rokucommunity/bslib": "0.1.1", From da9440387d4235915629c4f17a39612c31aae8e2 Mon Sep 17 00:00:00 2001 From: Jimi Date: Sun, 3 Nov 2024 06:44:33 -0700 Subject: [PATCH 2/3] Remeber Roku subs settings for videos with Forced subs --- components/video/VideoPlayerView.bs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/components/video/VideoPlayerView.bs b/components/video/VideoPlayerView.bs index 215f06821..109a5569c 100644 --- a/components/video/VideoPlayerView.bs +++ b/components/video/VideoPlayerView.bs @@ -9,6 +9,7 @@ sub init() m.top.getScene().findNode("overhang").visible = false userSettings = m.global.session.user.settings m.currentItem = m.global.queueManager.callFunc("getCurrentItem") + m.originalClosedCaptionState = invalid m.top.id = m.currentItem.id m.top.seekMode = "accurate" @@ -461,7 +462,12 @@ sub onVideoContentLoaded() availableSubtitleTrackIndex = availSubtitleTrackIdx(selectedSubtitle.Track.TrackName) if availableSubtitleTrackIndex <> -1 if not selectedSubtitle.IsEncoded - m.top.globalCaptionMode = "On" + if selectedSubtitle.IsForced + ' If IsForced, make sure to remember the Roku global setting so we + ' can set it back when the video is done playing. + m.originalClosedCaptionState = m.top.globalCaptionMode + m.top.globalCaptionMode = "On" + end if m.top.subtitleTrack = m.top.availableSubtitleTracks[availableSubtitleTrackIndex].TrackName end if end if @@ -697,6 +703,12 @@ sub ReportPlayback(state = "update" as string) m.bufferCheckTimer.duration = 30 end if + if (state = "stop" or state = "finished") and m.originalClosedCaptionState <> invalid + m.log.debug("ReportPlayback() setting", m.top.globalCaptionMode, "back to", m.originalClosedCaptionState) + m.top.globalCaptionMode = m.originalClosedCaptionState + m.originalClosedCaptionState = invalid + end if + ' Report playstate via worker task playstateTask = m.global.playstateTask playstateTask.setFields({ status: state, params: params }) From 67138f6d98c8f5598c91a36272457b93e3788b77 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 6 Nov 2024 20:59:18 -0500 Subject: [PATCH 3/3] fix sorting by Date Played when viewing a TV Show library --- components/ItemGrid/ItemGrid.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ItemGrid/ItemGrid.bs b/components/ItemGrid/ItemGrid.bs index 2b5875d9c..8aba4e330 100644 --- a/components/ItemGrid/ItemGrid.bs +++ b/components/ItemGrid/ItemGrid.bs @@ -302,7 +302,7 @@ sub setTvShowsOptions(options) { "Title": tr("TITLE"), "Name": "SortName" }, { "Title": tr("IMDB_RATING"), "Name": "CommunityRating" }, { "Title": tr("DATE_ADDED"), "Name": "DateCreated" }, - { "Title": tr("DATE_PLAYED"), "Name": "DatePlayed" }, + { "Title": tr("DATE_PLAYED"), "Name": "SeriesDatePlayed" }, { "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" }, { "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" }, { "Title": tr("Random"), "Name": "Random" },