whoops i meant redirects not normalized
This commit is contained in:
parent
6a3e5295d8
commit
6f0dad508c
1 changed files with 3 additions and 3 deletions
|
@ -52,9 +52,9 @@ public class WikipediaCommand extends Command {
|
||||||
|
|
||||||
final JsonObject query = pageIDJsonOutput.getAsJsonObject("query");
|
final JsonObject query = pageIDJsonOutput.getAsJsonObject("query");
|
||||||
|
|
||||||
final JsonElement normalizedElement = query.get("normalized");
|
final JsonElement redirectsElement = query.get("redirects");
|
||||||
if (normalizedElement != null) {
|
if (redirectsElement != null) {
|
||||||
final JsonArray normalized = normalizedElement.getAsJsonArray();
|
final JsonArray normalized = redirectsElement.getAsJsonArray();
|
||||||
|
|
||||||
for (JsonElement element : normalized) {
|
for (JsonElement element : normalized) {
|
||||||
final JsonObject redirect = element.getAsJsonObject();
|
final JsonObject redirect = element.getAsJsonObject();
|
||||||
|
|
Loading…
Reference in a new issue