add option to enable rewatching in next up section

This commit is contained in:
Johnscaban 2024-05-01 19:22:36 +00:00
parent ef2cbb7fcc
commit da6a8cbbbf
4 changed files with 19 additions and 2 deletions

View File

@ -68,7 +68,7 @@ sub loadItems()
params["SortOrder"] = "Descending"
params["ImageTypeLimit"] = 1
params["UserId"] = m.global.session.user.id
params["EnableRewatching"] = false
params["EnableRewatching"] = m.global.session.user.settings["ui.details.enablerewatchingnextup"]
params["DisableFirstEpisode"] = false
params["limit"] = 24
params["EnableTotalRecordCount"] = false

View File

@ -1266,5 +1266,15 @@
<translation>Ratings for how good a movie is</translation>
<extracomment>User Setting - Setting description</extracomment>
</message>
<message>
<source>Enable Rewatching Next Up</source>
<translation>Enable Rewatching Next Up</translation>
<extracomment>User Setting - Setting title</extracomment>
</message>
<message>
<source>Enable showing already watched episodes in 'Next Up' sections.</source>
<translation>Enable showing already watched episodes in 'Next Up' sections.</translation>
<extracomment>User Setting - Setting description</extracomment>
</message>
</context>
</TS>

View File

@ -234,6 +234,13 @@
"type": "integer",
"default": "365"
},
{
"title": "Enable Rewatching Next Up",
"description": "Enable showing already watched episodes in 'Next Up' sections.",
"settingName": "ui.details.enablerewatchingnextup",
"type": "bool",
"default": "false"
},
{
"title": "Show What's New Popup",
"description": "Show What's New popup when Jellyfin is updated to a new version.",

View File

@ -166,7 +166,7 @@ namespace quickplay
"SortOrder": "Descending",
"ImageTypeLimit": 1,
"UserId": m.global.session.user.id,
"EnableRewatching": false,
"EnableRewatching": m.global.session.user.settings["ui.details.enablerewatchingnextup"],
"DisableFirstEpisode": false,
"EnableTotalRecordCount": false
})