Skip to content

Commit

Permalink
feat: BSG
Browse files Browse the repository at this point in the history
  • Loading branch information
qixils committed Aug 14, 2023
1 parent 3489323 commit 9b869a9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
10 changes: 3 additions & 7 deletions api-server/src/main/kotlin/club/speedrun/vods/Application.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package club.speedrun.vods

import club.speedrun.vods.marathon.ESAMarathon
import club.speedrun.vods.marathon.GDQMarathon
import club.speedrun.vods.marathon.GdqDatabase
import club.speedrun.vods.marathon.HEKMarathon
import club.speedrun.vods.marathon.Marathon
import club.speedrun.vods.marathon.RPGLBMarathon
import club.speedrun.vods.marathon.*
import club.speedrun.vods.plugins.configureHTTP
import club.speedrun.vods.plugins.configureMonitoring
import club.speedrun.vods.plugins.configureOAuth
Expand Down Expand Up @@ -34,7 +29,8 @@ val gdq = GDQMarathon()
val esa = ESAMarathon()
val hek = HEKMarathon()
val rpglb = RPGLBMarathon()
val marathons: List<Marathon> = listOf(gdq, esa, hek, rpglb)
val bsg = BSGMarathon()
val marathons: List<Marathon> = listOf(gdq, esa, hek, rpglb, bsg)
val rootDb = RootDatabase()
val srcDb = SrcDatabase()
val httpClient = HttpClient(OkHttp) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ class RPGLBMarathon : Marathon(RPGLB(), "rpglb", "RPG Limit Break", "https://rpg
override fun getDonationUrl(event: EventData): String = "https://rpglimitbreak.com/tracker/ui/donate/${event.short}"
override fun getScheduleUrl(event: EventData): String = "https://rpglimitbreak.com/tracker/runs/${event.id}"
}
class BSGMarathon : Marathon(BSG(), "bsg", "Benelux Speedrunner Gathering", "https://bsgmarathon.com/") {
override fun getDonationUrl(event: EventData): String = "https://tracker.bsgmarathon.com/ui/donate/${event.short}"
override fun getScheduleUrl(event: EventData): String = "https://oengus.io/marathon/${event.short.lowercase()}/schedule" // this is so icky
}

suspend fun Event.horaroSchedule(): FullSchedule? {
if (horaroEvent == null || horaroSchedule == null) return null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package club.speedrun.vods.plugins

import club.speedrun.vods.*
import club.speedrun.vods.marathon.*
import dev.qixils.gdq.models.Run
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.locations.*
Expand Down Expand Up @@ -83,6 +82,7 @@ fun Application.configureRouting() {
route("/esa", esa.route())
route("/hek", hek.route())
route("/rpglb", rpglb.route())
route("/bsg", bsg.route())
}

route("/v2") {
Expand Down
3 changes: 2 additions & 1 deletion kgdq/src/main/kotlin/dev/qixils/gdq/GDQ.kt
Original file line number Diff line number Diff line change
Expand Up @@ -560,4 +560,5 @@ open class ESA(
}

class HEK : ESA("https://hekathon.esamarathon.com/search/")
class RPGLB : GDQ("https://tracker.rpglimitbreak.com/search/", ModelType.ALL.minus(ModelType.HEADSET))
class RPGLB : GDQ("https://tracker.rpglimitbreak.com/search/", ModelType.ALL.minus(ModelType.HEADSET))
class BSG : GDQ("https://tracker.bsgmarathon.com/search/") // shockingly using a fresh fork of the GDQ tracker instead of ESA's ancient fork
1 change: 0 additions & 1 deletion web/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ sup {
.bid {
display: flex;
align-items: center;
position: relative;
}

.bid-body {
Expand Down

0 comments on commit 9b869a9

Please sign in to comment.