Skip to content

Commit

Permalink
Add workaround to fix recordings/timers
Browse files Browse the repository at this point in the history
  • Loading branch information
flubshi committed May 13, 2024
1 parent 4fad244 commit 1db8f2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WaipuData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ bool WaipuData::LoadChannelData()

waipuChannel.iChannelNumber = i + 1; // position
waipuChannel.waipuID = waipuId; // waipu[id]
std::transform(waipuChannel.waipuID.begin(), waipuChannel.waipuID.end(), waipuChannel.waipuID.begin(),::toupper);
waipuChannel.iUniqueId = Utils::Hash(waipuId);
waipuChannel.strChannelName = channel["displayName"].GetString(); // waipu[displayName]

Expand All @@ -810,7 +811,7 @@ bool WaipuData::LoadChannelData()
iconUrl = std::regex_replace(iconUrl, std::regex("\\$\\{shape\\}"), "standard");
iconUrl = std::regex_replace(iconUrl, std::regex("\\$\\{resolution\\}"), "320x180");

std::string iconPath = "special://home/addons/pvr.waipu/resources/channel_icons/" + waipuId + ".png";
std::string iconPath = "special://home/addons/pvr.waipu/resources/channel_icons/" + waipuChannel.waipuID + ".png";
if (!kodi::vfs::FileExists(iconPath, true))
{
kodi::Log(ADDON_LOG_DEBUG, "[%s] Downloading channel logo %s to %s", __FUNCTION__, iconUrl.c_str(), iconPath.c_str());
Expand Down

0 comments on commit 1db8f2e

Please sign in to comment.