create and implement episode image user setting

This commit is contained in:
Charles Ewert 2024-07-30 14:42:41 -04:00
parent 3d7d1ec06d
commit cae2bea581
3 changed files with 55 additions and 2 deletions

View File

@ -146,9 +146,16 @@ sub itemContentChanged()
drawProgressBar(itemData)
end if
if itemData.usePoster = true
if localGlobal.session.user.settings["ui.general.episodeimagesnextup"] = "webclient"
tmpSetting = localGlobal.session.user.Configuration.useEpisodeImagesInNextUpAndResume
if isValid(tmpSetting) and tmpSetting
m.itemPoster.uri = itemData.thumbnailURL
else
m.itemPoster.uri = itemData.widePosterURL
end if
else if localGlobal.session.user.settings["ui.general.episodeimagesnextup"] = "show"
m.itemPoster.uri = itemData.widePosterURL
else
else if localGlobal.session.user.settings["ui.general.episodeimagesnextup"] = "episode"
m.itemPoster.uri = itemData.thumbnailURL
end if

View File

@ -1286,5 +1286,30 @@
<translation>Show already watched episodes in 'Next Up' sections.</translation>
<extracomment>User Setting - Setting description</extracomment>
</message>
<message>
<source>Episode Images Next Up</source>
<translation>Episode Images Next Up</translation>
<extracomment>User Setting - Setting title</extracomment>
</message>
<message>
<source>What type of images to use for Episodes shown in the 'Next Up' and 'Continue Watching' sections.</source>
<translation>What type of images to use for Episodes shown in the 'Next Up' and 'Continue Watching' sections.</translation>
<extracomment>User Setting - Setting description</extracomment>
</message>
<message>
<source>Use Web Client Setting</source>
<translation>Use Web Client Setting</translation>
<extracomment>User Setting - Setting option title</extracomment>
</message>
<message>
<source>Use Episode Image</source>
<translation>Use Episode Image</translation>
<extracomment>User Setting - Setting option title</extracomment>
</message>
<message>
<source>Use Show Image</source>
<translation>Use Show Image</translation>
<extracomment>User Setting - Setting option title</extracomment>
</message>
</context>
</TS>

View File

@ -220,6 +220,27 @@
"title": "General",
"description": "Settings relating to the appearance of the Home screen and the program in general.",
"children": [
{
"title": "Episode Images Next Up",
"description": "What type of images to use for Episodes shown in the 'Next Up' and 'Continue Watching' sections.",
"settingName": "ui.general.episodeimagesnextup",
"type": "radio",
"default": "webclient",
"options": [
{
"title": "Use Web Client Setting",
"id": "webclient"
},
{
"title": "Use Episode Image",
"id": "episode"
},
{
"title": "Use Show Image",
"id": "show"
}
]
},
{
"title": "Hide Clock",
"description": "Hide all clocks in Jellyfin. Jellyfin will need to be closed and reopened for changes to take effect.",