Пример #1
0
 std::string CStackDirectory::GetStackedTitlePath(const std::string &strPath)
 {
   // Load up our REs
   VECCREGEXP  RegExps;
   CRegExp     tempRE(true, CRegExp::autoUtf8);
   const std::vector<std::string>& strRegExps = g_advancedSettings.m_videoStackRegExps;
   std::vector<std::string>::const_iterator itRegExp = strRegExps.begin();
   while (itRegExp != strRegExps.end())
   {
     (void)tempRE.RegComp(*itRegExp);
     if (tempRE.GetCaptureTotal() == 4)
       RegExps.push_back(tempRE);
     else
       CLog::Log(LOGERROR, "Invalid video stack RE (%s). Must have exactly 4 captures.", itRegExp->c_str());
     ++itRegExp;
   }
   return GetStackedTitlePath(strPath, RegExps);
 }
Пример #2
0
 CStdString CStackDirectory::GetStackedTitlePath(const CStdString &strPath)
 {
   // Load up our REs
   VECCREGEXP  RegExps;
   CRegExp     tempRE(true);
   const CStdStringArray& strRegExps = g_advancedSettings.m_videoStackRegExps;
   CStdStringArray::const_iterator itRegExp = strRegExps.begin();
   vector<pair<int, CStdString> > badStacks;
   while (itRegExp != strRegExps.end())
   {
     tempRE.RegComp(*itRegExp);
     if (tempRE.GetCaptureTotal() == 4)
       RegExps.push_back(tempRE);
     else
       CLog::Log(LOGERROR, "Invalid video stack RE (%s). Must have exactly 4 captures.", itRegExp->c_str());
     itRegExp++;
   }
   return GetStackedTitlePath(strPath, RegExps);
 }