handle more values
@@ -197,6 +197,10 @@ func extractMoonFromDocV6(doc *goquery.Document, b *OGame, v any) (Moon, error)
func extractCelestialFromDocV6(doc *goquery.Document, b *OGame, v any) (Celestial, error) {
switch vv := v.(type) {
+ case Planet:
+ return extractCelestialByIDFromDocV6(doc, b, vv.GetID())
+ case Moon:
+ return extractCelestialByIDFromDocV6(doc, b, vv.GetID())
case PlanetID:
return extractCelestialByIDFromDocV6(doc, b, vv.Celestial())
case MoonID:
