Disable bz2 support due Win/Android incompatibility issues
This commit is contained in:
parent
4d3603136f
commit
117d577e82
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ def openArchive(archive_path, path_within):
|
||||||
@PluginManager.registerTo("UiRequest")
|
@PluginManager.registerTo("UiRequest")
|
||||||
class UiRequestPlugin(object):
|
class UiRequestPlugin(object):
|
||||||
def actionSiteMedia(self, path, header_length=True):
|
def actionSiteMedia(self, path, header_length=True):
|
||||||
if ".zip/" in path or ".tar.gz/" in path or ".tar.bz2/" in path:
|
if ".zip/" in path or ".tar.gz/" in path:
|
||||||
path_parts = self.parsePath(path)
|
path_parts = self.parsePath(path)
|
||||||
file_path = "%s/%s/%s" % (config.data_dir, path_parts["address"], path_parts["inner_path"])
|
file_path = "%s/%s/%s" % (config.data_dir, path_parts["address"], path_parts["inner_path"])
|
||||||
match = re.match("^(.*\.(?:tar.gz|tar.bz2|zip))/(.*)", file_path)
|
match = re.match("^(.*\.(?:tar.gz|tar.bz2|zip))/(.*)", file_path)
|
||||||
|
|
Loading…
Reference in a new issue