diff --git a/frontend/ui/opdsparser.lua b/frontend/ui/opdsparser.lua
index 46f8fbfd8..cff8f64f1 100644
--- a/frontend/ui/opdsparser.lua
+++ b/frontend/ui/opdsparser.lua
@@ -40,7 +40,6 @@ function OPDSParser:createFlatXTable(xlex, curr_element)
local txt
for event, offset, size in xlex:Lexemes() do
txt = ffi.string(xlex.buf + offset, size)
-
if event == luxl.EVENT_START then
if txt ~= "xml" then
-- does current element already have something
@@ -80,7 +79,7 @@ function OPDSParser:parse(text)
-- but will kick the ass of luxl
text = text:gsub("
", "
")
text = text:gsub("
", "
")
- -- some OPDS catalogs wrap text in a CDATA marker, remove it as it causes parsing problems
+ -- some OPDS catalogs wrap text in a CDATA section, remove it as it causes parsing problems
text = text:gsub("","%1")
local xlex = luxl.new(text, #text)
return self:createFlatXTable(xlex)