mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-27 08:20:47 +00:00
Add user setting: blur unwatched episodes
This commit is contained in:
parent
64a3a076aa
commit
32cf0c13ff
@ -56,7 +56,18 @@ sub itemContentChanged() as void
|
||||
end if
|
||||
m.staticTitle.text = m.title.text
|
||||
|
||||
m.poster.uri = itemData.posterUrl
|
||||
imageUrl = itemData.posterURL
|
||||
|
||||
if get_user_setting("ui.tvshows.blurunwatched") = "true"
|
||||
|
||||
if itemData.json.lookup("Type") = "Episode"
|
||||
if not itemData.json.userdata.played
|
||||
imageUrl = imageUrl + "&blur=15"
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
|
||||
m.poster.uri = imageUrl
|
||||
|
||||
updateSize()
|
||||
end sub
|
||||
|
@ -23,5 +23,5 @@
|
||||
</interface>
|
||||
|
||||
<script type="text/brightscript" uri="ListPoster.brs" />
|
||||
|
||||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
||||
</component>
|
||||
|
@ -3,6 +3,7 @@ sub init()
|
||||
m.title.text = tr("Loading...")
|
||||
m.options = m.top.findNode("tvListOptions")
|
||||
m.overview = m.top.findNode("overview")
|
||||
m.poster = m.top.findNode("poster")
|
||||
m.deviceInfo = CreateObject("roDeviceInfo")
|
||||
end sub
|
||||
|
||||
@ -15,9 +16,20 @@ sub itemContentChanged()
|
||||
indexNumber = ""
|
||||
end if
|
||||
m.title.text = indexNumber + item.title
|
||||
m.top.findNode("poster").uri = item.posterURL
|
||||
m.overview.text = item.overview
|
||||
|
||||
imageUrl = item.posterURL
|
||||
|
||||
if get_user_setting("ui.tvshows.blurunwatched") = "true"
|
||||
if itemData.lookup("Type") = "Episode"
|
||||
if not itemData.userdata.played
|
||||
imageUrl = imageUrl + "&blur=15"
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
|
||||
m.poster.uri = imageUrl
|
||||
|
||||
if type(itemData.RunTimeTicks) = "LongInteger"
|
||||
m.top.findNode("runtime").text = stri(getRuntime()).trim() + " mins"
|
||||
m.top.findNode("endtime").text = tr("Ends at %1").Replace("%1", getEndTime())
|
||||
|
@ -33,4 +33,5 @@
|
||||
</interface>
|
||||
<script type="text/brightscript" uri="TVListDetails.brs" />
|
||||
<script type="text/brightscript" uri="pkg:/source/utils/misc.brs" />
|
||||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
||||
</component>
|
||||
|
@ -574,14 +574,34 @@
|
||||
<translation>There was an error authenticating via Quick Connect.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Return to Top</source>
|
||||
<translation>Return to Top</translation>
|
||||
<extracomment>UI -> Media Grid -> Item Title in user setting screen.</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use the replay button to slowly animate to the first item in the folder. (If disabled, The folder will reset to the first item immediately)</source>
|
||||
<translation>Use the replay button to slowly animate to the first item in the folder. (If disabled, The folder will reset to the first item immediately)</translation>
|
||||
<extracomment>Description for option in Setting Screen</extracomment>
|
||||
</message>
|
||||
<source>Return to Top</source>
|
||||
<translation>Return to Top</translation>
|
||||
<extracomment>UI -> Media Grid -> Item Title in user setting screen.</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use the replay button to slowly animate to the first item in the folder. (If disabled, The folder will reset to the first item immediately)</source>
|
||||
<translation>Use the replay button to slowly animate to the first item in the folder. (If disabled, The folder will reset to the first item immediately)</translation>
|
||||
<extracomment>Description for option in Setting Screen</extracomment>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>TV Shows</source>
|
||||
<translation>TV Shows</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options for TV Shows.</source>
|
||||
<translation>Options for TV Shows.</translation>
|
||||
<extracomment>Description for TV Shows user settings.</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Blur Unwatched Episodes</source>
|
||||
<translation>Blur Unwatched Episodes</translation>
|
||||
<extracomment>Option Title in user setting screen</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>If enabled, images for unwatched episodes will be blurred.</source>
|
||||
<translation>If enabled, images for unwatched episodes will be blurred.</translation>
|
||||
<extracomment>Description for option in Setting Screen</extracomment>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -16,6 +16,19 @@
|
||||
"title": "User Interface",
|
||||
"description": "Settings relating to how the how the applications looks",
|
||||
"children": [
|
||||
{
|
||||
"title": "TV Shows",
|
||||
"description": "Options for TV Shows.",
|
||||
"children": [
|
||||
{
|
||||
"title": "Blur Unwatched Episodes",
|
||||
"description": "If enabled, images for unwatched episodes will be blurred.",
|
||||
"settingName": "ui.tvshows.blurunwatched",
|
||||
"type": "bool",
|
||||
"default": "false"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Media Grid",
|
||||
"description": "Media Grid Options",
|
||||
|
Loading…
Reference in New Issue
Block a user