"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/Util.cpp" between
xbmc-18.7.1-Leia.tar.gz and xbmc-18.8-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

Util.cpp  (xbmc-18.7.1-Leia):Util.cpp  (xbmc-18.8-Leia)
skipping to change at line 1972 skipping to change at line 1972
CURL pathToUrl(strArchivePath); CURL pathToUrl(strArchivePath);
CURL rarURL = URIUtils::CreateArchivePath("rar", pathToUrl, ""); CURL rarURL = URIUtils::CreateArchivePath("rar", pathToUrl, "");
if (!CDirectory::GetDirectory(rarURL, ItemList, "", DIR_FLAG_NO_FILE_DIRS)) if (!CDirectory::GetDirectory(rarURL, ItemList, "", DIR_FLAG_NO_FILE_DIRS))
return false; return false;
} }
for (const auto &item : ItemList) for (const auto &item : ItemList)
{ {
std::string strPathInRar = item->GetPath(); std::string strPathInRar = item->GetPath();
std::string strExt = URIUtils::GetExtension(strPathInRar); std::string strExt = URIUtils::GetExtension(strPathInRar);
// Check another archive in archive
if (strExt == ".zip" || strExt == ".rar")
{
nItemsAdded +=
ScanArchiveForAssociatedItems(strPathInRar, videoNameNoExt, item_exts,
associatedFiles);
continue;
}
// check that the found filename matches the movie filename // check that the found filename matches the movie filename
size_t fnl = videoNameNoExt.size(); size_t fnl = videoNameNoExt.size();
// NOTE: We don't know if videoNameNoExt is URL-encoded, so try both // NOTE: We don't know if videoNameNoExt is URL-encoded, so try both
if (fnl && if (fnl &&
!(StringUtils::StartsWithNoCase(URIUtils::GetFileName(strPathInRar), video NameNoExt) || !(StringUtils::StartsWithNoCase(URIUtils::GetFileName(strPathInRar), video NameNoExt) ||
StringUtils::StartsWithNoCase(URIUtils::GetFileName(strPathInRar), CURL: :Decode(videoNameNoExt)))) StringUtils::StartsWithNoCase(URIUtils::GetFileName(strPathInRar), CURL: :Decode(videoNameNoExt))))
continue; continue;
for (auto ext : item_exts) for (auto ext : item_exts)
{ {
 End of changes. 1 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)