Skip to content

Commit

Permalink
Merge pull request #271 from flubshi/omega_play_past_1h
Browse files Browse the repository at this point in the history
Allow restart of program that is not running anymore but started max …
  • Loading branch information
flubshi authored Dec 29, 2023
2 parents d846820 + c57fb80 commit 7324d40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pvr.waipu/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.waipu"
version="21.4.2"
version="21.5.0"
name="waipu.tv PVR Client"
provider-name="flubshi">
<requires>@ADDON_DEPENDS@
Expand All @@ -26,7 +26,7 @@
<screenshot>resources/screenshots/screenshot-02.jpg</screenshot>
</assets>
<news>
- Update translation fles from weblate
- Allow restart of program that is not running anymore but started max 1 hour in the past
</news>
<summary lang="da_DK">waipu.tv PVR-klient</summary>
<summary lang="de_DE">waipu.tv PVR Client</summary>
Expand Down
2 changes: 1 addition & 1 deletion src/WaipuData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7324d40

Please sign in to comment.