From 57d210095529c21224bb5c150cda2203885f4a17 Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Fri, 17 Dec 2021 18:54:23 +0100 Subject: [PATCH 1/2] Fix creation of broadcast and channel uids. --- src/Utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index d1c6b56..9349265 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -62,8 +62,9 @@ int Utils::Hash(const std::string& str) int hash = 0; while (*s) - hash = hash << 1 ^ *s++; - return hash; + hash = ((hash << 5) + hash) + *s++; // hash * 33 + c + + return std::abs(hash); } std::string Utils::CreateUUID() From 9b7412c0fd7bfce2d8440e34f699055a9565bcdf Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Fri, 17 Dec 2021 18:58:05 +0100 Subject: [PATCH 2/2] Add-on version bump and changelog --- pvr.plutotv/addon.xml.in | 2 +- pvr.plutotv/changelog.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pvr.plutotv/addon.xml.in b/pvr.plutotv/addon.xml.in index c6c180e..4265ff5 100644 --- a/pvr.plutotv/addon.xml.in +++ b/pvr.plutotv/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.plutotv/changelog.txt b/pvr.plutotv/changelog.txt index a8f1f92..ba0b947 100644 --- a/pvr.plutotv/changelog.txt +++ b/pvr.plutotv/changelog.txt @@ -1,3 +1,6 @@ +v19.0.3 +- Fix creation of broadcast and channel uid + v19.0.2 - Fix memory leak when redirecting HTTP requests - Load channel data on demand, not on add-on startup