Skip to content

Commit

Permalink
Merge pull request #2065 from cewert/sortby-date-episode-added
Browse files Browse the repository at this point in the history
Add `Date Show Added` sort option for TV show libraries
  • Loading branch information
jimdogx authored Jan 15, 2025
2 parents 072f849 + fc8fa2d commit 1df6ff7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
11 changes: 6 additions & 5 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("IMDB_RATING"), "Name": "CommunityRating" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated" },
{ "Title": tr("DATE_PLAYED"), "Name": "SeriesDatePlayed" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" },
{ "Title": tr("Random"), "Name": "Random" },
{ "Title": tr("IMDB_RATING"), "Name": "CommunityRating,SortName" },
{ "Title": tr("DATE_SHOW_ADDED"), "Name": "DateCreated,SortName" },
{ "Title": tr("DATE_EPISODE_ADDED"), "Name": "DateLastContentAdded,SortName" }
{ "Title": tr("DATE_PLAYED"), "Name": "SeriesDatePlayed,SortName" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating,SortName" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate,SortName" },
]
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 1df6ff7

Please sign in to comment.