Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recordings are grouped only if "Group entries by season" is checked #943

Open
Uukrull opened this issue Jan 21, 2025 · 0 comments
Open

Recordings are grouped only if "Group entries by season" is checked #943

Uukrull opened this issue Jan 21, 2025 · 0 comments

Comments

@Uukrull
Copy link

Uukrull commented Jan 21, 2025

if (m_settings->GroupMediaByTitle() && isInVirtualMediaEntryFolder)

I don't want them grouped by seasons and this should allow that:

 src/iptvsimple/data/MediaEntry.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/iptvsimple/data/MediaEntry.cpp b/src/iptvsimple/data/MediaEntry.cpp
index b01df07..606e6e0 100644
--- a/src/iptvsimple/data/MediaEntry.cpp
+++ b/src/iptvsimple/data/MediaEntry.cpp
@@ -307,6 +307,10 @@ void MediaEntry::UpdateTo(kodi::addon::PVRRecording& left, bool isInVirtualMedia
           newDirectory = StringUtils::Format("%s%s/%s/", newDirectory.c_str(), m_folderTitle.c_str(), seasonText.c_str());
       }
     }
+    else
+    {
+      newDirectory = StringUtils::Format("%s%s/", newDirectory.c_str(), m_folderTitle.c_str());
+    }
   }
 
   left.SetDirectory(newDirectory);

Before (with "Group entries by season" checked. If it's unchecked, no group is created):

Image

After (with "Group entries by season" unchecked):

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant