aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Kortstiege <vdrfan@xbmc.org>2012-08-01 05:21:07 -0700
committerMatthias Kortstiege <vdrfan@xbmc.org>2012-08-01 05:21:07 -0700
commit00ecb8f64b8c194e89fdd4f4d94981885e3b5134 (patch)
treed2aca7e5d8ec2417505f5dd5521af3b2990a5da9
parent22e12a77b4e56acb6cd349b515dde48ac8a25bb3 (diff)
parent701eac73bb8e2c0e0afc070a1d8eda821f49cb76 (diff)
Merge pull request #852 from mad-max/lookupfoldernames
added ability to use folder names for music video lookup
-rw-r--r--xbmc/settings/GUIDialogContentSettings.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/xbmc/settings/GUIDialogContentSettings.cpp b/xbmc/settings/GUIDialogContentSettings.cpp
index f669f2a0b6..e2bef8f80b 100644
--- a/xbmc/settings/GUIDialogContentSettings.cpp
+++ b/xbmc/settings/GUIDialogContentSettings.cpp
@@ -179,7 +179,10 @@ void CGUIDialogContentSettings::CreateSettings()
case CONTENT_MUSICVIDEOS:
{
AddBool(1,20346,&m_bScanRecursive, m_bShowScanSettings);
- AddBool(2,20432,&m_bNoUpdate, m_bShowScanSettings);
+ AddBool(2,20330,&m_bUseDirNames, m_bShowScanSettings);
+ AddBool(3,20346,&m_bScanRecursive, m_bShowScanSettings && ((m_bUseDirNames && !m_bSingleItem) || !m_bUseDirNames)
+ AddBool(4,20383,&m_bSingleItem, m_bShowScanSettings && (m_bUseDirNames && !m_bScanRecursive));
+ AddBool(5,20432,&m_bNoUpdate, m_bShowScanSettings);
}
break;
case CONTENT_ALBUMS:
@@ -449,9 +452,24 @@ bool CGUIDialogContentSettings::Show(ADDON::ScraperPtr& scraper, VIDEO::SScanSet
}
else if (content == CONTENT_MUSICVIDEOS)
{
- settings.parent_name = false;
- settings.parent_name_root = false;
- settings.recurse = dialog->m_bScanRecursive ? INT_MAX : 0;
+ if (dialog->m_bUseDirNames)
+ {
+ settings.parent_name = true;
+ settings.parent_name_root = false;
+ settings.recurse = dialog->m_bScanRecursive ? INT_MAX : 1;
+
+ if (dialog->m_bSingleItem)
+ {
+ settings.parent_name_root = true;
+ settings.recurse = 0;
+ }
+ }
+ else
+ {
+ settings.parent_name = false;
+ settings.parent_name_root = false;
+ settings.recurse = dialog->m_bScanRecursive ? INT_MAX : 0;
+ }
}
}
}