Skip to content
Permalink
Browse files

Rename GetFileProperty to GetFilePropertyValue

Fix issue when disabling the addon
  • Loading branch information
rbuehlma committed Sep 9, 2017
1 parent a24879b commit 9f45464b933ecccf554b81d153b0985eaa213497
Showing with 7 additions and 5 deletions.
  1. +1 −1 pvr.zattoo/addon.xml.in
  2. +2 −0 pvr.zattoo/changelog.txt
  3. +1 −1 src/Curl.cpp
  4. +3 −3 src/UpdateThread.cpp
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="pvr.zattoo" version="18.0.9" name="Zattoo PVR Client" provider-name="trummerjo,rbuehlma">
<addon id="pvr.zattoo" version="18.0.10" name="Zattoo PVR Client" provider-name="trummerjo,rbuehlma">
<requires>@ADDON_DEPENDS@</requires>
<extension point="xbmc.pvrclient" library_@PLATFORM@="@LIBRARY_FILENAME@"/>
<extension point="xbmc.addon.metadata">
@@ -1,3 +1,5 @@
v18.0.10
- Rename GetFileProperty to GetFilePropertyValue
v18.0.9
- Fix build and solve warnings
v18.0.8
@@ -43,7 +43,7 @@ string Curl::Post(string url, string postData, int &statusCode)
return "";
}

char *cookiesPtr = XBMC->GetFileProperty(file,
char *cookiesPtr = XBMC->GetFilePropertyValue(file,
XFILE::FILE_PROPERTY_RESPONSE_HEADER, "set-cookie");
if (cookiesPtr && *cookiesPtr)
{
@@ -44,9 +44,7 @@ void* UpdateThread::Process()
XBMC->Log(LOG_DEBUG, "Update thread started.");
while (!IsStopped())
{
Sleep(100);

while (!loadEpgQueue.empty())
while (!loadEpgQueue.empty() && !IsStopped())
{
EpgQueueEntry entry = loadEpgQueue.front();
loadEpgQueue.pop();
@@ -59,13 +57,15 @@ void* UpdateThread::Process()
time(&currentTime);
if (currentTime < nextRecordingsUpdate)
{
Sleep(100);
continue;
}
nextRecordingsUpdate = currentTime + maximumUpdateInterval;
PVR->TriggerTimerUpdate();
PVR->TriggerRecordingUpdate();
XBMC->Log(LOG_DEBUG, "Update thread triggered update.");
}
Sleep(100);
}
XBMC->Log(LOG_DEBUG, "Update thread stopped.");
return 0;

0 comments on commit 9f45464

Please sign in to comment.
You can’t perform that action at this time.