[bugfix] updated tags to the correct names

* fixed issue where enabledTags and excludedTags are appended to the query string
This commit is contained in:
silentrald
2024-10-18 00:45:57 +08:00
parent 8357c09e9f
commit 70926283ff
2 changed files with 34 additions and 31 deletions
@@ -40,6 +40,9 @@ export class BeatSaverApiService {
const params: Record<string, string> = this.objectToStringRecord({...filter, tags});
delete params.enabledTags;
delete params.excludedTags;
return new URLSearchParams(params);
}
+31 -31
View File
@@ -147,42 +147,42 @@ export interface BsvMapParitySummary {
}
export enum MapStyle {
Dance = "dance",
Swing = "swing",
Nightcore = "nightcore",
Folk = "folk",
Family = "family",
Alt = "alternative",
Ambient = "ambient",
Funk = "funk",
Anime = "anime",
ClassicalOrchestral = "classical-orchestral",
Comedy = "comedy-meme",
Dance = "dance",
DrumBass = "drum-and-bass",
Dubstep = "dubstep",
Electronic = "electronic",
Folk = "folk-acoustic",
Funk = "funk-disco",
Hardcore = "hardcore",
Hiphop = "hip-hop-rap",
Holiday = "holiday",
House = "house",
Indie = "indie",
Instrumental = "instrumental",
JPop = "j-pop",
JRock = "j-rock",
Jazz = "jazz",
Soul = "soul",
Speedcore = "speedcore",
KPop = "k-pop",
Family = "kids-family",
Metal = "metal",
Nightcore = "nightcore",
Pop = "pop",
Punk = "punk",
Rb = "rb",
Holiday = "holiday",
Vocaloid = "vocaloid",
JRock = "j-rock",
Trance = "trance",
DrumBass = "drumbass",
Comedy = "comedy",
Instrumental = "instrumental",
Hardcore = "hardcore",
KPop = "k-pop",
Indie = "indie",
Techno = "techno",
House = "house",
Game = "game",
Film = "film",
Alt = "alt",
Dubstep = "dubstep",
Metal = "metal",
Anime = "anime",
Hiphop = "hiphop",
JPop = "j-pop",
Rock = "rock",
Pop = "pop",
Electronic = "electronic",
ClassicalOrchestral = "classical-orchestral"
Soul = "soul",
Speedcore = "speedcore",
Swing = "swing",
Film = "tv-movie-soundtrack",
Techno = "techno",
Trance = "trance",
Game = "video-game-soundtrack",
Vocaloid = "vocaloid",
}
// MapType Enum