set cached only if logged
@@ -927,12 +927,16 @@ func (b *OGame) getPageContent(vals url.Values) ([]byte, error) {
}
if page == "overview" {
+ if isLogged(pageHTMLBytes) {
b.Player, _ = ExtractUserInfos(pageHTMLBytes, b.language)
b.Planets = ExtractPlanets(pageHTMLBytes, b)
+ }
} else if IsAjaxPage(vals) {
} else {
+ if isLogged(pageHTMLBytes) {
b.Planets = ExtractPlanets(pageHTMLBytes, b)
}
+ }
go func() {
for _, fn := range b.interceptorCallbacks {
