Skip to content

Commit

Permalink
Merge pull request #18 from ksooo/cleanup_and_fixes_03
Browse files Browse the repository at this point in the history
Matrix: Fix creation of broadcast and channel uid
  • Loading branch information
ksooo authored Dec 17, 2021
2 parents 8845256 + 9b7412c commit 5e13f7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pvr.plutotv/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.plutotv"
version="19.0.2"
version="19.0.3"
name="Pluto.tv PVR Client"
provider-name="Team Kodi, flubshi">
<requires>@ADDON_DEPENDS@
Expand Down
3 changes: 3 additions & 0 deletions pvr.plutotv/changelog.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5e13f7e

Please sign in to comment.