diff --git a/components/home/LoadItemsTask.bs b/components/home/LoadItemsTask.bs index b690dfa14..e93db10a2 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/docs/api/components_home_LoadItemsTask.bs.html b/docs/api/components_home_LoadItemsTask.bs.html index a9d364eee..c58f7275e 100644 --- a/docs/api/components_home_LoadItemsTask.bs.html +++ b/docs/api/components_home_LoadItemsTask.bs.html @@ -70,7 +70,7 @@ 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/docs/api/source_utils_quickplay.bs.html b/docs/api/source_utils_quickplay.bs.html index 4d4a432cb..3052f6c8a 100644 --- a/docs/api/source_utils_quickplay.bs.html +++ b/docs/api/source_utils_quickplay.bs.html @@ -168,7 +168,7 @@ "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 }) diff --git a/locale/en_US/translations.ts b/locale/en_US/translations.ts index 63c7c97a3..fe5666d25 100644 --- a/locale/en_US/translations.ts +++ b/locale/en_US/translations.ts @@ -1276,5 +1276,15 @@ View All Next Up Title for viewing all episodes available in the Next Up section + + 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 })