Skip to content

Commit

Permalink
Add Date Show Added sort option. Make option list match web client
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 27, 2024
1 parent eaf2e11 commit 85a95f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 3 additions & 2 deletions components/ItemGrid/ItemGrid.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
12 changes: 11 additions & 1 deletion locale/en_US/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
</message>
<message>
<source>IMDB_RATING</source>
<translation>IMDb Rating</translation>
<translation>Community Rating</translation>
</message>
<message>
<source>CRITIC_RATING</source>
Expand Down Expand Up @@ -1401,5 +1401,15 @@
<translation>CH</translation>
<extracomment>Abbreviation for Channel</extracomment>
</message>
<message>
<source>DATE_EPISODE_ADDED</source>
<translation>Date Episode Added</translation>
<extracomment>TV Show library sort option</extracomment>
</message>
<message>
<source>DATE_SHOW_ADDED</source>
<translation>Date Show Added</translation>
<extracomment>TV Show library sort option</extracomment>
</message>
</context>
</TS>

0 comments on commit 85a95f4

Please sign in to comment.