atualizacoes

This commit is contained in:
2026-04-27 15:00:27 +01:00
parent a7bd44ba18
commit 18658058de
2 changed files with 14 additions and 4 deletions

View File

@@ -66,8 +66,13 @@ public class Main {
club.setId(clubId); club.setId(clubId);
if (c.get("name") != null) if (c.get("name") != null)
club.setName(c.get("name").toString()); club.setName(c.get("name").toString());
if (c.get("logoURL") != null) if (c.get("logoURL") != null) {
club.setImageUrl(c.get("logoURL").toString()); String logoUrl = c.get("logoURL").toString();
if (logoUrl != null && !logoUrl.startsWith("http") && !logoUrl.isEmpty()) {
logoUrl = "https://api.afavcd.pt" + logoUrl;
}
club.setImageUrl(logoUrl);
}
if (c.get("president") != null) if (c.get("president") != null)
club.setPresident(c.get("president").toString()); club.setPresident(c.get("president").toString());
if (c.get("address") != null) if (c.get("address") != null)

View File

@@ -64,8 +64,13 @@ public class StandingsScraper {
club.setId(clubId); club.setId(clubId);
if (c.get("name") != null) if (c.get("name") != null)
club.setName(c.get("name").toString()); club.setName(c.get("name").toString());
if (c.get("logoURL") != null) if (c.get("logoURL") != null) {
club.setImageUrl(c.get("logoURL").toString()); String logoUrl = c.get("logoURL").toString();
if (logoUrl != null && !logoUrl.startsWith("http") && !logoUrl.isEmpty()) {
logoUrl = "https://api.afavcd.pt" + logoUrl;
}
club.setImageUrl(logoUrl);
}
clubesMap.put(clubId, club); clubesMap.put(clubId, club);
} }