Skip to content

Commit

Permalink
uri: use of protocol tags to deduce if parent needs to be checked
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus committed Aug 7, 2013
1 parent f66a432 commit 39afb92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/utils/URIUtils.cpp
Expand Up @@ -433,7 +433,7 @@ bool URIUtils::IsRemote(const CStdString& strFile)
}

CURL url(strFile);
if(IsInArchive(strFile))
if(ProtocolHasParentInHostname(url.GetProtocol()))
return IsRemote(url.GetHostName());

if (!url.IsLocal())
Expand Down Expand Up @@ -488,7 +488,7 @@ bool URIUtils::IsOnLAN(const CStdString& strPath)
return true;

CURL url(strPath);
if (url.GetProtocol() == "rar" || url.GetProtocol() == "zip")
if (ProtocolHasParentInHostname(url.GetProtocol()))
return IsOnLAN(url.GetHostName());

if(!IsRemote(strPath))
Expand Down Expand Up @@ -539,7 +539,7 @@ bool URIUtils::IsHD(const CStdString& strFileName)
if(IsStack(strFileName))
return IsHD(CStackDirectory::GetFirstStackedFile(strFileName));

if (IsInArchive(strFileName))
if (ProtocolHasParentInHostname(url.GetProtocol()))
return IsHD(url.GetHostName());

return url.GetProtocol().IsEmpty() || url.GetProtocol() == "file";
Expand Down

0 comments on commit 39afb92

Please sign in to comment.