Skip to content

Commit

Permalink
Fixed an issue where invalid songs in the playlist would be counted t…
Browse files Browse the repository at this point in the history
…wice as an error.
  • Loading branch information
ranmd9a committed Aug 15, 2021
1 parent 63e934d commit e5f3432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class JsonDeserializer extends PlaylistDeserializer {
for (const song of songs) {
if (song.hash != null) {
const beatmap = BeatmapLibrary.GetAllValidMap().find(
(value) => value.hash === song.hash
(value) => value.hash?.toUpperCase() === song.hash?.toUpperCase()
);
if (beatmap == null) {
newSongs.push(song);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export default class PlaylistDeserializeBeatsaverBeatmap {
progress.plusOne();
result.push(newItem);
// return newItem;
// eslint-disable-next-line no-continue
continue;
}
progress.plusOne();
// return item;
Expand Down

0 comments on commit e5f3432

Please sign in to comment.