Skip to content

Commit

Permalink
Merge pull request #356 from flubshi/piers_fix_timers_missing_epgdata
Browse files Browse the repository at this point in the history
Fix timers import on broken timer entry
  • Loading branch information
flubshi authored Oct 16, 2024
2 parents bfa1143 + fccc668 commit 4e9b446
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/WaipuData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,13 @@ PVR_ERROR WaipuData::GetTimers(kodi::addon::PVRTimersResultSet& results)

for (const auto& timer : timersDoc["result"].GetArray())
{
// skip if missing epgdata
if (!timer.HasMember("epgData"))
{
kodi::Log(ADDON_LOG_DEBUG, "[timers] Skip due to missing epgData");
continue;
}

// skip not FINISHED entries
std::string status = timer["status"].GetString();
if (status != "SCHEDULED" && status != "RECORDING")
Expand Down

0 comments on commit 4e9b446

Please sign in to comment.