diff --git a/src/WaipuData.cpp b/src/WaipuData.cpp index e3e8076..75e0af5 100644 --- a/src/WaipuData.cpp +++ b/src/WaipuData.cpp @@ -1731,11 +1731,16 @@ PVR_ERROR WaipuData::GetRecordings(bool deleted, kodi::addon::PVRRecordingsResul if (recordingEntry.HasMember("recordingGroup") && recordingEntry["recordingGroup"].IsInt()) { int recordingGroup = recordingEntry["recordingGroup"].GetInt(); - kodi::Log(ADDON_LOG_DEBUG, "[recordings] found group: %i;", recordingGroup); + kodi::Log(ADDON_LOG_DEBUG, "[%s] found group: %i;", __FUNCTION__, recordingGroup); recordingGroups.insert(recordingGroup); } else if (status == "FINISHED" || status == "RECORDING") { + if (recordingEntry.HasMember("locked") && recordingEntry["locked"].GetBool()) + { + kodi::Log(ADDON_LOG_DEBUG, "[%s] Skip locked recording", __FUNCTION__); + continue; + } recordings_count++; results.Add(ParseRecordingEntry(recordingEntry)); } @@ -1765,6 +1770,11 @@ PVR_ERROR WaipuData::GetRecordings(bool deleted, kodi::addon::PVRRecordingsResul if (status != "FINISHED" && status != "RECORDING") continue; + if (recordingEntry.HasMember("locked") && recordingEntry["locked"].GetBool()) + { + kodi::Log(ADDON_LOG_DEBUG, "[%s] Skip locked recording", __FUNCTION__); + continue; + } recordings_count++; results.Add(ParseRecordingEntry(recordingEntry)); }