fix genre filter for custom song list

This commit is contained in:
Bui 2022-02-26 00:09:14 +00:00
parent d44a4a1ce2
commit e9b07f283d
2 changed files with 11 additions and 2 deletions

View File

@ -2954,7 +2954,7 @@ class SongSelect{
break break
case "genre": case "genre":
var cat = assets.categories.find(cat => cat.id === song.category_id) var cat = assets.categories.find(cat => cat.id === song.category_id)
var aliases = cat.aliases ? cat.aliases.concat([song.category]) : [song.category] var aliases = cat.aliases ? cat.aliases.concat([cat.title]) : [cat.title]
if(aliases.find(alias => alias.toLowerCase() === value.toLowerCase())){ if(aliases.find(alias => alias.toLowerCase() === value.toLowerCase())){
passedFilters++ passedFilters++

View File

@ -1352,7 +1352,16 @@ var translations = {
}, },
tips: { tips: {
ja: [ ja: [
"CTRL+Fで検索窓を開く!" "CTRL+Fで検索窓を開く!",
"検索フィルタの組み合わせは自由自在です!",
"最も関連性の高い100件のみを表示します。",
"キーワードでジャンルを絞り込めます!(例: \"genre:variety\", \"genre:namco\")",
"「oni:10」などのフィルターを使用して、特定の難易度の曲を検索して",
"Difficulty filters support ranges, too! Try \"ura:1-5\"!",
"Want to see your full combos? Try \"gold:any\", \"gold:oni\", etc.!",
"Only want to see creative songs? Use the \"creative:yes\" filter!",
"Find songs with lyrics enabled with the \"lyrics:yes\" filter!",
"Feel like trying something new? Use the \"played:no\" filter to only see songs you haven't played yet!"
], ],
en: [ en: [
"Open the search window by pressing CTRL+F!", "Open the search window by pressing CTRL+F!",