Skip to content

Commit

Permalink
Revert "Scanner: refresh maps with missing cache data"
Browse files Browse the repository at this point in the history
This reverts commit 03bb762.
  • Loading branch information
ibillingsley committed Apr 12, 2024
1 parent 689a3de commit ad47ea1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Changelog

## v1.5.0-beta (2024-03-27)
## v1.5.0-beta (2024-04-12)
**Improvement:**
- <a href="https://github.com/AllPoland/ArcViewer" target="_blank">ArcViewer</a> replaces Rabbit's viewer for previews.
- Supports V3 maps with arcs and chains.
Expand All @@ -27,7 +27,6 @@
**Bug fixes:**
- Fixed freezing on startup.
- Fixed beatmap information page for maps with no with no BeatSaver data.
- Scanner rechecks maps with no BeatSaver data.

<br>

Expand Down
12 changes: 0 additions & 12 deletions src/libraries/scanner/beatmap/BeatmapScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ export default class BeatmapScanner implements ScannerInterface<BeatmapLocal> {
);
}

// Refresh maps with missing cache data
if (forceUpdate) {
const validCache = BeatsaverCachedLibrary.GetAllValid();
const missing = BeatmapLibrary.GetAllValidMap().filter(
(beatmap) =>
beatmap.hash && !validCache.has(beatmap.hash.toUpperCase())
);
const paths = missing.map((beatmap) => beatmap.folderPath);
BeatmapLibrary.RemoveBeatmapByPaths(paths);
diff.added = diff.added.concat(paths);
}

progress.setTotal(diff.added.length + retryTargetItems.length);

// 追加された曲
Expand Down

0 comments on commit ad47ea1

Please sign in to comment.