From 7a6bbc302b0923cf777377d9f063e9f893f5b7ce Mon Sep 17 00:00:00 2001 From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Thu, 23 May 2024 23:32:59 +0200 Subject: [PATCH 1/2] Async updates: Ignore 'add' events for existing tags (happens on wake after suspend). --- src/Tvheadend.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Tvheadend.cpp b/src/Tvheadend.cpp index 7edd0cf2..2d100534 100644 --- a/src/Tvheadend.cpp +++ b/src/Tvheadend.cpp @@ -2049,6 +2049,12 @@ void CTvheadend::ParseTagAddOrUpdate(htsmsg_t* msg, bool bAdd) } /* Locate object */ + if (bAdd && m_tags.find(u32) != m_tags.cend()) + { + Logger::Log(LogLevel::LEVEL_DEBUG, "Ignoring 'addTag' for existing tag with id %d", u32); + return; + } + auto& existingTag = m_tags[u32]; existingTag.SetDirty(false); From f6bbd985ba8c2f9b1917c8bf82091654b4c7852f Mon Sep 17 00:00:00 2001 From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Thu, 23 May 2024 23:11:25 +0200 Subject: [PATCH 2/2] add-on version bump and changelog --- pvr.hts/addon.xml.in | 2 +- pvr.hts/changelog.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pvr.hts/addon.xml.in b/pvr.hts/addon.xml.in index b0e71787..367b491b 100644 --- a/pvr.hts/addon.xml.in +++ b/pvr.hts/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.hts/changelog.txt b/pvr.hts/changelog.txt index 121d0502..f57e35ff 100644 --- a/pvr.hts/changelog.txt +++ b/pvr.hts/changelog.txt @@ -1,3 +1,6 @@ +v21.2.4 +- Async updates: Ignore 'add' events for existing tags (happens on wake after suspend). + v21.2.3 - Predictive tuning: Fix crash while sorting channels.