From 67bf6a4ea89f87107780eec786423a22e02adb7f Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sat, 28 Feb 2015 15:03:25 +0100 Subject: [PATCH] [pvr] changed: add the filename of the recording (if any) to the epg tag serialised data --- xbmc/epg/EpgInfoTag.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xbmc/epg/EpgInfoTag.cpp b/xbmc/epg/EpgInfoTag.cpp index 7ee7c224aa324..379268884704f 100644 --- a/xbmc/epg/EpgInfoTag.cpp +++ b/xbmc/epg/EpgInfoTag.cpp @@ -159,6 +159,7 @@ bool CEpgInfoTag::operator !=(const CEpgInfoTag& right) const void CEpgInfoTag::Serialize(CVariant &value) const { + CPVRRecordingPtr recording(Recording()); value["broadcastid"] = m_iUniqueBroadcastID; value["parentalrating"] = m_iParentalRating; value["rating"] = m_iStarRating; @@ -178,6 +179,7 @@ void CEpgInfoTag::Serialize(CVariant &value) const value["episodepart"] = m_iEpisodePart; value["hastimer"] = HasTimer(); value["hasrecording"] = HasRecording(); + value["recording"] = recording ? recording->m_strFileNameAndPath : ""; value["isactive"] = IsActive(); value["wasactive"] = WasActive(); }