diff --git a/pvr.waipu/addon.xml.in b/pvr.waipu/addon.xml.in index 7a2dca7..1e08ec3 100644 --- a/pvr.waipu/addon.xml.in +++ b/pvr.waipu/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ @@ -26,7 +26,7 @@ resources/screenshots/screenshot-02.jpg -- Update translation files from weblate +- Allow restart of program that is not running anymore but started max 1 hour in the past waipu.tv PVR-klient waipu.tv PVR Client diff --git a/src/WaipuData.cpp b/src/WaipuData.cpp index 3da7f80..9f7689b 100644 --- a/src/WaipuData.cpp +++ b/src/WaipuData.cpp @@ -1324,7 +1324,7 @@ PVR_ERROR WaipuData::IsEPGTagPlayable(const kodi::addon::PVREPGTag& tag, bool& i // check if program is running and replay allowed auto current_time = time(NULL); if (m_account_replay_allowed && current_time > tag.GetStartTime() && - current_time < tag.GetEndTime()) + (current_time < tag.GetEndTime() || current_time - 60*60 < tag.GetStartTime())) { isPlayable = (tag.GetFlags() & EPG_TAG_FLAG_INSTANT_RESTART_ALLOWED_WAIPU); }