From c39d63117ba907b77a6af28f00f93db832e6bcc6 Mon Sep 17 00:00:00 2001 From: CrystalP Date: Sun, 3 Nov 2024 18:11:24 -0500 Subject: [PATCH] Fix Stream Details Save After Playback - no need to save stream details for PVR live streams - they're bound to change many times - restore logic calculating the file to save the stream details --- xbmc/utils/SaveFileStateJob.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xbmc/utils/SaveFileStateJob.cpp b/xbmc/utils/SaveFileStateJob.cpp index 27653ce1c1..be2b6c7c88 100644 --- a/xbmc/utils/SaveFileStateJob.cpp +++ b/xbmc/utils/SaveFileStateJob.cpp @@ -171,7 +171,8 @@ void CSaveFileState::DoWork(CFileItem& item, } } - if (item.HasVideoInfoTag() && item.GetVideoInfoTag()->HasStreamDetails()) + if (item.HasVideoInfoTag() && item.GetVideoInfoTag()->HasStreamDetails() && + !item.IsLiveTV()) { CFileItem dbItem(item); @@ -180,7 +181,7 @@ void CSaveFileState::DoWork(CFileItem& item, dbItem.GetVideoInfoTag()->m_streamDetails != item.GetVideoInfoTag()->m_streamDetails) { const int idFile = videodatabase.SetStreamDetailsForFile( - item.GetVideoInfoTag()->m_streamDetails, item.GetDynPath()); + item.GetVideoInfoTag()->m_streamDetails, progressTrackingFile); if (item.GetVideoContentType() == VideoDbContentType::MOVIES) videodatabase.SetFileForMovie(item.GetDynPath(), item.GetVideoInfoTag()->m_iDbId, idFile); -- 2.11.4.GIT