CStdString strPath(strFile);
CStdString filename;
CStdString root;
+ CStdString ext(URIUtils::GetExtension(strPath));
if(strPath.Left(7).Equals("bluray:"))
{
root = url.GetHostName();
filename = URIUtils::GetFileName(url.GetFileName());
}
+ else if(ext == ".iso"
+ || ext == ".img")
+ {
+ CURL url("udf://");
+ url.SetHostName(strPath);
+ root = url.Get();
+ filename = "index.bdmv";
+ }
else
{
URIUtils::GetDirectory(strPath,strPath);
filename = URIUtils::GetFileName(strFile);
}
-
- /* translate to udf file system if needed */
- CStdString ext(URIUtils::GetExtension(root));
- if(ext == ".iso"
- || ext == ".img")
- {
- CURL url("udf://");
- url.SetHostName(root);
- root = url.Get();
- }
-
if (!m_dll)
return false;