From d377185c8135236aa8c221db0f51a4193e3b286d Mon Sep 17 00:00:00 2001 From: flubshi Date: Wed, 25 Dec 2019 16:44:25 +0100 Subject: [PATCH 1/2] Fix: prevent recording of epg tags in the past --- src/WaipuData.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/WaipuData.cpp b/src/WaipuData.cpp index caec67e..8445d49 100644 --- a/src/WaipuData.cpp +++ b/src/WaipuData.cpp @@ -1139,6 +1139,14 @@ std::string WaipuData::GetLicense(void) PVR_ERROR WaipuData::IsEPGTagRecordable(const EPG_TAG* tag, bool* bIsRecordable) { + time_t current_time; + time(¤t_time); + if (tag->endTime < current_time) + { + // if tag is in past, no recording is possible + *bIsRecordable = false; + return PVR_ERROR_NO_ERROR; + } for (const auto& epgEntry : m_epgEntries) { From e5f53e699fca393a4c239c5353c8eadedd7dfb22 Mon Sep 17 00:00:00 2001 From: flubshi Date: Thu, 26 Dec 2019 14:58:53 +0100 Subject: [PATCH 2/2] bump version 1.3.3 --- pvr.waipu/addon.xml.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pvr.waipu/addon.xml.in b/pvr.waipu/addon.xml.in index b89a6cb..b21f92d 100644 --- a/pvr.waipu/addon.xml.in +++ b/pvr.waipu/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ @@ -30,6 +30,7 @@ resources/screenshots/screenshot-02.jpg +- 1.3.3 Fix: hide recordable option for items in the past - 1.3.2 Add inputstream.adaptive to dependencies; Fix translation IDs; Show record option only if available - 1.3.1 Add channel groups: display favorites - 1.3.0 Implement O2 authentication