Managing music albums Box-Sets properly with KODI library feature
(2019-12-07, 15:00)DaveBlake Wrote:
(2019-12-07, 14:08)black_eagle Wrote: I have a version that, if disc navigation is turned off, always shows the song list if no description.  It doesn't affect boxset navigation which still shows either description or disc titles.  Doubt Dave will approve though !! 
Ho, depends what you have done Smile
In the skin, or in core or both? You show me yours and I'll show you mine  
I did it in core.

Basically, applied a test for the disc nav settings & boxset in the album node and returned a child node of discs if the setting is enabled or the album is a boxset, else return a child node of songs.

cpp:
NODE_TYPE CDirectoryNodeAlbum::GetChildType() const
{
  bool boxset = false;
  bool discs = CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool(
            CSettings::SETTING_MUSICLIBRARY_SHOWDISCS);
  CMusicDatabase db;
  if (db.Open())
    boxset = db.IsAlbumBoxset(GetID());
  if (!discs && !boxset)
    return NODE_TYPE_SONG;
  return NODE_TYPE_DISC;
}

Your variable adjustment works well.  It doesn't work though for paths that have ?compilation=true or similar.
Learning Linux the hard way !!
Reply


Messages In This Thread
RE: Managing music albums Box-Sets properly with KODI library feature - by black_eagle - 2019-12-07, 15:27
[split] Singles - by garfield - 2019-10-06, 00:59
RE: [split] Singles - by Harbour - 2022-01-31, 09:15
Logout Mark Read Team Forum Stats Members Help
Managing music albums Box-Sets properly with KODI library feature0