Skip to content

Commit

Permalink
Support LUMINOUS proper
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Mar 17, 2024
1 parent 3fb3540 commit 695d2dd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,13 @@ def sdvxin_link(view: "SdvxinChartView") -> str:


def get_jacket_url(song: "Song") -> str:
return f"{INTERNATIONAL_JACKET_BASE}/{song.jacket}"
if song.available:
return f"{INTERNATIONAL_JACKET_BASE}/{song.jacket}"

if not song.removed:
return f"{JACKET_BASE}/{song.jacket}"

return song.jacket


def release_to_chunithm_version(date: datetime) -> str:
Expand Down Expand Up @@ -217,4 +223,10 @@ def release_to_chunithm_version(date: datetime) -> str:
<= datetime(2023, 4, 26, tzinfo=TOKYO_TZ)
):
return "SUN"
return "SUN PLUS"
if (
datetime(2023, 5, 11, tzinfo=TOKYO_TZ)
<= date
<= datetime(2023, 11, 22, tzinfo=TOKYO_TZ)
):
return "SUN PLUS"
return "LUMINOUS"

0 comments on commit 695d2dd

Please sign in to comment.