diff --git a/components/home/LoadItemsTask.bs b/components/home/LoadItemsTask.bs index 369ce7b43..1c3049e9e 100644 --- a/components/home/LoadItemsTask.bs +++ b/components/home/LoadItemsTask.bs @@ -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 diff --git a/locale/en_US/translations.ts b/locale/en_US/translations.ts index 3c429640b..81c122358 100644 --- a/locale/en_US/translations.ts +++ b/locale/en_US/translations.ts @@ -1271,5 +1271,15 @@ Ratings for how good a movie is User Setting - Setting description + + Rewatching Next Up + Rewatching Next Up + User Setting - Setting title + + + Show already watched episodes in 'Next Up' sections. + Show already watched episodes in 'Next Up' sections. + User Setting - Setting description + - \ No newline at end of file + diff --git a/settings/settings.json b/settings/settings.json index d5b67399d..6f5e15c00 100644 --- a/settings/settings.json +++ b/settings/settings.json @@ -234,6 +234,13 @@ "type": "integer", "default": "365" }, + { + "title": "Rewatching Next Up", + "description": "Show 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.", diff --git a/source/utils/quickplay.bs b/source/utils/quickplay.bs index cca3dfa96..3dcb149f1 100644 --- a/source/utils/quickplay.bs +++ b/source/utils/quickplay.bs @@ -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 })