apk: tag filesystem as having parent in hostname
authorJoakim Plate <elupus@ecce.se>
Wed, 7 Aug 2013 12:40:11 +0000 (14:40 +0200)
committerJoakim Plate <elupus@ecce.se>
Wed, 7 Aug 2013 12:55:03 +0000 (14:55 +0200)
xbmc/filesystem/APKDirectory.cpp
xbmc/filesystem/APKFile.cpp
xbmc/utils/URIUtils.cpp

index 8dada09..72dc7ca 100644 (file)
@@ -42,9 +42,6 @@ bool CAPKDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items
   CStdString host = url.GetHostName();
   URIUtils::AddSlashAtEnd(path);
 
-  // host name might be encoded rfc1738.txt, decode it.
-  CURL::Decode(host);
-
   int zip_flags = 0, zip_error = 0, dir_marker = 0;
   struct zip *zip_archive;
   zip_archive = zip_open(host.c_str(), zip_flags, &zip_error);
index cae71a2..b3f2383 100644 (file)
@@ -52,8 +52,6 @@ bool CAPKFile::Open(const CURL& url)
   m_url = url;
   CStdString path = url.GetFileName();
   CStdString host = url.GetHostName();
-  // host name might be encoded rfc1738.txt, decode it.
-  CURL::Decode(host);
 
   int zip_flags = 0, zip_error = 0;
   m_zip_archive = zip_open(host.c_str(), zip_flags, &zip_error);
@@ -208,8 +206,6 @@ int CAPKFile::Stat(const CURL& url, struct __stat64* buffer)
   //  we might be called without opening
   CStdString path = url.GetFileName();
   CStdString host = url.GetHostName();
-  // host name might be encoded rfc1738.txt, decode it.
-  CURL::Decode(host);
 
   struct zip *zip_archive;
   int zip_flags = 0, zip_error = 0;
index 74027eb..deb5b54 100644 (file)
@@ -258,6 +258,7 @@ bool URIUtils::ProtocolHasParentInHostname(const CStdString& prot)
 {
   return prot.Equals("zip")
       || prot.Equals("rar")
+      || prot.Equals("apk")
       || prot.Equals("bluray")
       || prot.Equals("udf");
 }