Skip to content

Commit

Permalink
use the same movie sorting options as web
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 27, 2024
1 parent eaf2e11 commit b532fb7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions components/ItemGrid/ItemGrid.bs
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,17 @@ sub setMoviesOptions(options)
{ "Title": tr("Genres"), "Name": "Genres" }
]
options.sort = [
{ "Title": tr("TITLE"), "Name": "SortName" },
{ "Title": tr("IMDB_RATING"), "Name": "CommunityRating" },
{ "Title": tr("CRITIC_RATING"), "Name": "CriticRating" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated" },
{ "Title": tr("DATE_PLAYED"), "Name": "DatePlayed" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" },
{ "Title": tr("PLAY_COUNT"), "Name": "PlayCount" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" },
{ "Title": tr("RUNTIME"), "Name": "Runtime" },
{ "Title": tr("TITLE"), "Name": "SortName,ProductionYear" },
{ "Title": tr("Random"), "Name": "Random" },
{ "Title": tr("IMDB_RATING"), "Name": "CommunityRating,SortName,ProductionYear" },
{ "Title": tr("CRITIC_RATING"), "Name": "CriticRating,SortName,ProductionYear" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated,SortName,ProductionYear" },
{ "Title": tr("DATE_PLAYED"), "Name": "DatePlayed,SortName,ProductionYear" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating,SortName,ProductionYear" },
{ "Title": tr("PLAY_COUNT"), "Name": "PlayCount,SortName,ProductionYear" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate,SortName,ProductionYear" },
{ "Title": tr("RUNTIME"), "Name": "Runtime,SortName,ProductionYear" },

]
options.filter = [
{ "Title": tr("All"), "Name": "All" },
Expand Down

0 comments on commit b532fb7

Please sign in to comment.