2015-08-22, 12:57
In Kodi recordings view I find it preferable to display only recordings in the "Default" recording group.
Presently with my mythbackend setup I get two parent folders "Default" and "LiveTV" and must always navigate into "Default" to view the recordings I care about.
As a patch I have been using as a workaround
But I wonder if perhaps a configurable option would be better.
Leaving this as a suggestion to see if there is any interest among other users.
Thanks for your work Jean-Luc.
Presently with my mythbackend setup I get two parent folders "Default" and "LiveTV" and must always navigate into "Default" to view the recordings I care about.
As a patch I have been using as a workaround
Code:
diff --git a/src/cppmyth/MythProgramInfo.cpp b/src/cppmyth/MythProgramInfo.cpp
index cede9e9..a0ce2bc 100644
--- a/src/cppmyth/MythProgramInfo.cpp
+++ b/src/cppmyth/MythProgramInfo.cpp
@@ -107,8 +107,8 @@ bool MythProgramInfo::IsSetup() const
{
if (RecordingGroup() == "Deleted" || IsDeletePending())
m_flags |= FLAGS_IS_DELETED;
- else
- m_flags |= FLAGS_IS_VISIBLE;
+ if (RecordingGroup() == "Default")
+ m_flags |= FLAGS_IS_VISIBLE; // Only show programs from the default recording group
}
// Is LiveTV ?
diff --git a/src/pvrclient-mythtv.cpp b/src/pvrclient-mythtv.cpp
index e367beb..210cb9b 100644
--- a/src/pvrclient-mythtv.cpp
+++ b/src/pvrclient-mythtv.cpp
@@ -860,9 +860,9 @@ PVR_ERROR PVRClientMythTV::GetRecordings(ADDON_HANDLE handle)
tag.iGenreType = genre&0xF0;
// Add recording title to directory to group everything according to its name just like MythTV does
- std::string strDirectory(it->second.RecordingGroup());
+ std::string strDirectory("");
if (g_iGroupRecordings == GROUP_RECORDINGS_ALWAYS || (g_iGroupRecordings == GROUP_RECORDINGS_ONLY_FOR_SERIES && it->second.GetPropsSerie()))
- strDirectory.append("/").append(it->second.Title());
+ strDirectory.append(it->second.Title());
PVR_STRCPY(tag.strDirectory, strDirectory.c_str());
// Images
But I wonder if perhaps a configurable option would be better.
Leaving this as a suggestion to see if there is any interest among other users.
Thanks for your work Jean-Luc.