|| prot.Equals("musicsearch");
}
+bool URIUtils::ProtocolHasEncodedFilename(const CStdString& prot)
+{
+ CStdString prot2 = CURL::TranslateProtocol(prot);
+
+ // For now assume only (quasi) http internet streams use URL encoding
+ return prot2 == "http" ||
+ prot2 == "https";
+}
+
CStdString URIUtils::GetParentPath(const CStdString& strPath)
{
CStdString strReturn;
bool URIUtils::IsInternetStream(const CURL& url, bool bStrictCheck /* = false */)
{
-
CStdString strProtocol = url.GetProtocol();
if (strProtocol.IsEmpty())
static bool ProtocolHasParentInHostname(const CStdString& prot);
static bool ProtocolHasEncodedHostname(const CStdString& prot);
+ static bool ProtocolHasEncodedFilename(const CStdString& prot);
};