Skip to content
Snippets Groups Projects
Commit c9ec5932 authored by echicken's avatar echicken :chicken:
Browse files

You know what? Fuck XML. That's right, I said it.

parent da2d1e3c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #381 passed
...@@ -155,6 +155,14 @@ const Channel = function (c) { ...@@ -155,6 +155,14 @@ const Channel = function (c) {
} }
function toLocal(x) {
for each(var e in x) {
e.setName(e.localName());
toLocal(e);
}
return x;
}
const Feed = function (url, follow_redirects) { const Feed = function (url, follow_redirects) {
this.channels = []; this.channels = [];
...@@ -176,7 +184,7 @@ const Feed = function (url, follow_redirects) { ...@@ -176,7 +184,7 @@ const Feed = function (url, follow_redirects) {
} }
httpRequest = undefined; httpRequest = undefined;
} }
var feed = new XML(doc.replace(/^<\?xml.*\?>/g, "")); var feed = toLocal(new XML(doc.replace(/^<\?xml.*\?>/g, "")));
doc = undefined; doc = undefined;
switch (feed.localName()) { switch (feed.localName()) {
case "rss": case "rss":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment