From dbb859758403a0fc01b906c2e03c0ce289f6ac2f Mon Sep 17 00:00:00 2001 From: phunkyfish Date: Tue, 8 Oct 2024 20:03:59 +0100 Subject: [PATCH 1/2] Fix XMLTV format check --- src/iptvsimple/Epg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/iptvsimple/Epg.cpp b/src/iptvsimple/Epg.cpp index e6c84c32..4af778e9 100644 --- a/src/iptvsimple/Epg.cpp +++ b/src/iptvsimple/Epg.cpp @@ -226,9 +226,9 @@ const XmltvFileFormat Epg::GetXMLTVFileFormat(const char* buffer) if (!buffer) return XmltvFileFormat::INVALID; - if ((buffer[0] != '\x3C' && buffer[std::strlen(buffer) - 1] != '\x3E') || // Start with < and ends with > - (buffer[0] != '\x3C' && buffer[1] != '\x3F' && buffer[2] != '\x78' && // xml should starts with ' + (buffer[0] == '\x3C' && buffer[1] == '\x3F' && buffer[2] == '\x78' && // xml should starts with ' Date: Tue, 8 Oct 2024 20:04:50 +0100 Subject: [PATCH 2/2] changelog and version 22.2.2 --- pvr.iptvsimple/addon.xml.in | 2 +- pvr.iptvsimple/changelog.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pvr.iptvsimple/addon.xml.in b/pvr.iptvsimple/addon.xml.in index 6bc5a3b3..9eb9061f 100644 --- a/pvr.iptvsimple/addon.xml.in +++ b/pvr.iptvsimple/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.iptvsimple/changelog.txt b/pvr.iptvsimple/changelog.txt index bf3c0985..af8f805c 100644 --- a/pvr.iptvsimple/changelog.txt +++ b/pvr.iptvsimple/changelog.txt @@ -1,3 +1,6 @@ +v22.2.2 +- Fix XMLTV format check + v22.2.1 - Fix XML file format check - Always treat special paths as local