diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index bd17ddc5..86f98f05 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -271,7 +271,11 @@ public class Main { Document dom = cache.xml("update.url", s -> new URL(getApplicationProperty(s))).expire(Cache.ONE_WEEK).retry(0).get(); // parse update xml - final Map update = streamChildren(dom.getFirstChild()).collect(toMap(n -> n.getNodeName(), n -> n.getTextContent().trim())); + final Map update = streamElements(dom.getFirstChild()).collect(toMap(n -> { + return n.getNodeName(); + }, n -> { + return n.getTextContent().trim(); + })); // check if update is required int latestRev = Integer.parseInt(update.get("revision"));