Merge pull request #1688 from cewert/sync-master

This commit is contained in:
Charles Ewert 2024-02-06 09:10:28 -05:00 committed by GitHub
commit 31f91c7500
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 34 additions and 5 deletions

View File

@ -3,7 +3,7 @@
# If you want to get_images, you'll also need convert from ImageMagick
##########################################################################
VERSION := 2.0.2
VERSION := 2.0.3
## usage

View File

@ -249,7 +249,14 @@ function defaultSubtitleTrackFromVid(videoID) as integer
if not isValidAndNotEmpty(meta.json.MediaSources[0].MediaStreams) then return SubtitleSelection.none
subtitles = sortSubtitles(meta.id, meta.json.MediaSources[0].MediaStreams)
selectedAudioLanguage = meta.json.MediaSources[0].MediaStreams[m.top.selectedAudioStreamIndex].Language ?? ""
selectedAudioLanguage = ""
audioMediaStream = meta.json.MediaSources[0].MediaStreams[m.top.selectedAudioStreamIndex]
' Ensure audio media stream is valid before using language property
if isValid(audioMediaStream)
selectedAudioLanguage = audioMediaStream.Language ?? ""
end if
defaultTextSubs = defaultSubtitleTrack(subtitles["text"], selectedAudioLanguage, true) ' Find correct subtitle track (forced text)
if defaultTextSubs <> SubtitleSelection.none

View File

@ -3,7 +3,7 @@
title=Jellyfin
major_version=2
minor_version=0
build_version=2
build_version=3
### Main Menu Icons / Channel Poster Artwork

View File

@ -1,7 +1,7 @@
{
"name": "jellyfin-roku",
"type": "module",
"version": "2.0.2",
"version": "2.0.3",
"description": "Roku app for Jellyfin media server",
"dependencies": {
"@rokucommunity/bslib": "0.1.1",

View File

@ -282,7 +282,19 @@ sub Main (args as dynamic) as void
end if
' Display playback options dialog
if selectedItem.json.userdata.PlaybackPositionTicks > 0
showPlaybackOptionDialog = false
if isValid(selectedItem.json)
if isValid(selectedItem.json.userdata)
if isValid(selectedItem.json.userdata.PlaybackPositionTicks)
if selectedItem.json.userdata.PlaybackPositionTicks > 0
showPlaybackOptionDialog = true
end if
end if
end if
end if
if showPlaybackOptionDialog
dialog.close = true
m.global.queueManager.callFunc("hold", selectedItem)
playbackOptionDialog(selectedItem.json.userdata.PlaybackPositionTicks, selectedItem.json)

View File

@ -0,0 +1,10 @@
[
{
"description": "Fix playback of movie additional parts",
"author": "1hitsong"
},
{
"description": "Fix crash if video has no audio stream",
"author": "1hitsong"
}
]