From 85a95f4e84be943576a04d08f954d65322f3f268 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 26 Nov 2024 23:06:11 -0500 Subject: [PATCH] Add `Date Show Added` sort option. Make option list match web client --- components/ItemGrid/ItemGrid.bs | 5 +++-- locale/en_US/translations.ts | 12 +++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/components/ItemGrid/ItemGrid.bs b/components/ItemGrid/ItemGrid.bs index 8aba4e330..abc83724c 100644 --- a/components/ItemGrid/ItemGrid.bs +++ b/components/ItemGrid/ItemGrid.bs @@ -300,12 +300,13 @@ sub setTvShowsOptions(options) ] options.sort = [ { "Title": tr("TITLE"), "Name": "SortName" }, + { "Title": tr("Random"), "Name": "Random" }, { "Title": tr("IMDB_RATING"), "Name": "CommunityRating" }, - { "Title": tr("DATE_ADDED"), "Name": "DateCreated" }, + { "Title": tr("DATE_SHOW_ADDED"), "Name": "DateCreated" }, + { "Title": tr("DATE_EPISODE_ADDED"), "Name": "DateLastContentAdded" } { "Title": tr("DATE_PLAYED"), "Name": "SeriesDatePlayed" }, { "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" }, { "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" }, - { "Title": tr("Random"), "Name": "Random" }, ] options.filter = [ { "Title": tr("All"), "Name": "All" }, diff --git a/locale/en_US/translations.ts b/locale/en_US/translations.ts index fc54b2eab..9779f77da 100644 --- a/locale/en_US/translations.ts +++ b/locale/en_US/translations.ts @@ -228,7 +228,7 @@ IMDB_RATING - IMDb Rating + Community Rating CRITIC_RATING @@ -1401,5 +1401,15 @@ CH Abbreviation for Channel + + DATE_EPISODE_ADDED + Date Episode Added + TV Show library sort option + + + DATE_SHOW_ADDED + Date Show Added + TV Show library sort option + \ No newline at end of file