aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorksooo <3226626+ksooo@users.noreply.github.com>2024-10-19 16:41:27 +0200
committerksooo <3226626+ksooo@users.noreply.github.com>2024-10-19 16:53:49 +0200
commit846a98dc02532f4ebb3e0ea502c26e93e4c77f88 (patch)
treecb1a11bca09419106a7207bf5031289757721863
parent93dc72679b7364201beebf320de433ebf9ddd570 (diff)
[PVR] CAddEpgTag, CAddonRecording: Add missing init of some parental rating data members.
-rw-r--r--xbmc/pvr/addons/PVRClient.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/xbmc/pvr/addons/PVRClient.cpp b/xbmc/pvr/addons/PVRClient.cpp
index 4e1fca84b9..dd868f6292 100644
--- a/xbmc/pvr/addons/PVRClient.cpp
+++ b/xbmc/pvr/addons/PVRClient.cpp
@@ -133,9 +133,9 @@ public:
m_fanartPath(recording.ClientFanartPath()),
m_firstAired(recording.FirstAired().IsValid() ? recording.FirstAired().GetAsW3CDate() : ""),
m_providerName(recording.ProviderName()),
- m_parentalRatingCode(""), //! @todo
- m_parentalRatingIcon(""), //! @todo
- m_parentalRatingSource("") //! @todo
+ m_parentalRatingCode(recording.GetParentalRatingCode()),
+ m_parentalRatingIcon(recording.GetParentalRatingIcon()),
+ m_parentalRatingSource(recording.GetParentalRatingSource())
{
// zero-init base struct members
PVR_RECORDING* base = static_cast<PVR_RECORDING*>(this);
@@ -306,8 +306,8 @@ public:
m_genreDescription(tag.GenreDescription()),
m_firstAired(GetFirstAired(tag)),
m_parentalRatingCode(tag.ParentalRatingCode()),
- m_parentalRatingIcon(""), //! @todo
- m_parentalRatingSource("") //! @todo
+ m_parentalRatingIcon(tag.ParentalRatingIcon()),
+ m_parentalRatingSource(tag.ParentalRatingSource())
{
// zero-init base struct members
EPG_TAG* base = static_cast<EPG_TAG*>(this);