Removed comment bloat
This commit is contained in:
@@ -26,7 +26,7 @@ class osu_cacher
|
||||
|
||||
public function get_cached_path(string $path) : string
|
||||
{
|
||||
return str_replace($this->root, $this->cache_root, $path);
|
||||
return str_replace($this->root, $this->cache_root, $path) . ".json";
|
||||
}
|
||||
|
||||
public function is_cached(string $path) : bool
|
||||
|
||||
@@ -201,38 +201,4 @@ else if ($display == "start")
|
||||
}
|
||||
}
|
||||
|
||||
echo $te->get_html();
|
||||
|
||||
|
||||
// foreach ($lib->get_library() as $mapset)
|
||||
// {
|
||||
// echo '<div class="beatmapset">';
|
||||
// echo '<h2>Beatmapset: ';
|
||||
// if (!empty($mapset["id"])) echo $mapset["id"];
|
||||
// else echo '???';
|
||||
// echo '</h2>';
|
||||
// foreach ($mapset["difficulties"] as $beatmap)
|
||||
// {
|
||||
// $beatmap["format-2"] = mb_substr($beatmap["format"] ?? "v1", 1);
|
||||
// if (is_numeric(mb_substr($beatmap["format"] ?? "v1", 1)))
|
||||
// {
|
||||
// echo '<div class="beatmap">';
|
||||
// echo '<h3>Title: ' . $beatmap["title"];
|
||||
// if (!empty($beatmap["id"])) echo '<br />ID: ' . $beatmap["id"];
|
||||
// echo '<br />Artist: ' . $beatmap["artist"];
|
||||
// echo '<br />Mapper: ' . $beatmap["mapper"];
|
||||
// echo '<br />Format: ' . $beatmap["format"];
|
||||
// echo '</h3>';
|
||||
// echo '<img class="small-background" src="./proxy.php?path=' . urlencode($mapset["path"] . "/" . $beatmap["background"]) . '" />';
|
||||
// echo '</div>';
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// echo '<div class="beatmap">';
|
||||
// echo '<h3>Extra: ' . $beatmap["format"];
|
||||
// echo '</h3>';
|
||||
// echo '</div>';
|
||||
// }
|
||||
// }
|
||||
// echo '</div>';
|
||||
// }
|
||||
echo $te->get_html();
|
||||
@@ -113,6 +113,7 @@ details.mapset summary::-webkit-details-marker {
|
||||
}
|
||||
.warn h2 {
|
||||
margin: 0;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
.warn {
|
||||
|
||||
Reference in New Issue
Block a user