Skip to content

Commit f88591a

Browse files
authored
tibiaHousesOverview: format Ab'Dendriel properly (#297)
1 parent cfecd59 commit f88591a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/webserver.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,12 @@ func tibiaHousesOverview(c *gin.Context) {
681681
return
682682
}
683683

684+
// Ab'Dendriel gets formatted as Ab'dendriel by TibiaDataStringWorldFormatToTitle
685+
// which makes tibia.com not recognize it and return an empty response.
686+
if strings.EqualFold(town, "ab'dendriel") {
687+
town = "Ab'Dendriel"
688+
}
689+
684690
jsonData, err := TibiaHousesOverviewImpl(c, world, town, TibiaDataHTMLDataCollector)
685691
if err != nil {
686692
TibiaDataErrorHandler(c, err, 0)

0 commit comments

Comments
 (0)