Disable bz2 support due Win/Android incompatibility issues

This commit is contained in:
shortcutme 2017-02-24 01:16:11 +01:00
parent 4d3603136f
commit 117d577e82
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def openArchive(archive_path, path_within):
@PluginManager.registerTo("UiRequest")
class UiRequestPlugin(object):
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)
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)