xbmc.extract No archive given
#1
Hi all,

I'm trying to unzip a file through the xbmc.extract() function, but it gives me the following error:
ERROR: XBMC.Extract, No archive given

xbmc.log:
Code:
02:54:43 T:8844  NOTICE: <the correct path>\<the correct filename>.zip
02:54:43 T:8436   ERROR: XBMC.Extract, No archive given



If I try to open that exact same zipfile in the exact same location, it works perfectly on windows.
So I guess the zipfile works...

If I check the xbmc code (xbmc/interfaces/Builtins.cpp) it says the following:

Code:
if (URIUtils::IsZIP(params[0]))
      g_ZipManager.ExtractArchive(params[0],strDestDirect);
#ifdef HAS_FILESYSTEM_RAR
    else if (URIUtils::IsRAR(params[0]))
      g_RarManager.ExtractArchive(params[0],strDestDirect);
#endif
    else
      CLog::Log(LOGERROR, "XBMC.Extract, No archive given");

If I check the code from URIUtils::IsZIP, it says the following:
Code:
bool URIUtils::IsZIP(const CStdString& strFile) // also checks for comic books!
{
  return HasExtension(strFile, ".zip|.cbz");
}

I can assure this file has the zip extension without any spaces...


Thank you in advance,


EDIT: Never mind... It seems that, if the zipfile has a comma inside of the name, the error occurs. I'm going to submit a bug report
Reply
#2
no reason to submit a bug report for something that ain't a bug. we have quoting of params exactly for this reason.

extractachive("path/with/commas")
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.extract No archive given0