Skip to content

Commit

Permalink
Add all remaining mino mirrors (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui authored Jul 1, 2024
1 parent b880192 commit 2f4c28d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
6 changes: 6 additions & 0 deletions app/adapters/osu_mirrors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from datetime import datetime

from app.adapters.osu_mirrors.backends import AbstractBeatmapMirror
from app.adapters.osu_mirrors.backends.mino import MinoBrazilMirror
from app.adapters.osu_mirrors.backends.mino import MinoCentralMirror
from app.adapters.osu_mirrors.backends.mino import MinoSingaporeMirror
from app.adapters.osu_mirrors.backends.mino import MinoUSCentralMirror
from app.adapters.osu_mirrors.backends.mino import MinoUSEastMirror
from app.adapters.osu_mirrors.backends.mino import MinoUSWestMirror
from app.adapters.osu_mirrors.backends.nerinyan import NerinyanMirror
Expand All @@ -19,6 +22,9 @@
MinoCentralMirror(),
MinoUSEastMirror(),
MinoUSWestMirror(),
MinoBrazilMirror(),
MinoUSCentralMirror(),
MinoSingaporeMirror(),
NerinyanMirror(),
OsuDirectMirror(),
# GatariMirror(), # Disabled as ratelimit is very low
Expand Down
23 changes: 19 additions & 4 deletions app/adapters/osu_mirrors/backends/mino.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,30 @@ async def fetch_beatmap_background_image(


class MinoCentralMirror(MinoMirror):
name = "mino-central"
name = "mino-germany"
base_url = "https://central.catboy.best"


class MinoUSWestMirror(MinoMirror):
name = "mino-us-west"
base_url = "https://us.catboy.best"
class MinoUSCentralMirror(MinoMirror):
name = "mino-us-central"
base_url = "https://usc.catboy.best"


class MinoUSEastMirror(MinoMirror):
name = "mino-us-east"
base_url = "https://use.catboy.best"


class MinoUSWestMirror(MinoMirror):
name = "mino-us-west"
base_url = "https://us.catboy.best"


class MinoSingaporeMirror(MinoMirror):
name = "mino-singapore"
base_url = "https://sg.catboy.best"


class MinoBrazilMirror(MinoMirror):
name = "mino-brazil"
base_url = "https://br.catboy.best"

0 comments on commit 2f4c28d

Please sign in to comment.