2019-12-07, 15:27
(2019-12-07, 15:00)DaveBlake Wrote:I did it in core.(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
In the skin, or in core or both? You show me yours and I'll show you mine
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.