Skip to content

Commit

Permalink
Merge pull request #2067 from cewert/improve-boxset-sort-options
Browse files Browse the repository at this point in the history
Add boxset/collections library sorting options
  • Loading branch information
jimdogx authored Jan 18, 2025
2 parents f1bb2dd + 78f072f commit e47bd5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 9 additions & 3 deletions components/ItemGrid/ItemGrid.bs
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,16 @@ sub setBoxsetsOptions(options)
options.views = [{ "Title": tr("Shows"), "Name": "shows" }]
options.sort = [
{ "Title": tr("TITLE"), "Name": "SortName" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated" },
{ "Title": tr("DATE_PLAYED"), "Name": "DatePlayed" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" },
{ "Title": tr("Random"), "Name": "Random" },
{ "Title": tr("IMDB_RATING"), "Name": "CommunityRating,SortName" },
{ "Title": tr("CRITIC_RATING"), "Name": "CriticRating,SortName" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated,SortName" },
{ "Title": tr("DATE_PLAYED"), "Name": "DatePlayed,SortName" },
{ "Title": tr("Folders"), "Name": "IsFolder,SortName" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating,SortName" },
{ "Title": tr("PLAY_COUNT"), "Name": "PlayCount,SortName" },
{ "Title": tr("RELEASE_DATE"), "Name": "ProductionYear,PremiereDate,SortName" },
{ "Title": tr("RUNTIME"), "Name": "Runtime,SortName" }
]
options.filter = [
{ "Title": tr("All"), "Name": "All" },
Expand Down
5 changes: 2 additions & 3 deletions locale/en_US/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1402,9 +1402,8 @@
<extracomment>Abbreviation for Channel</extracomment>
</message>
<message>
<source>DATE_EPISODE_ADDED</source>
<translation>Date Episode Added</translation>
<extracomment>TV Show library sort option</extracomment>
<source>Folders</source>
<translation>Folders</translation>
</message>
<message>
<source>DATE_SHOW_ADDED</source>
Expand Down

0 comments on commit e47bd5b

Please sign in to comment.