just skip mounting for Windows to prevent errors.

This commit is contained in:
Clinton Hall 2019-04-05 13:04:08 +13:00 committed by GitHub
commit c39ebb8e2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -644,6 +644,9 @@ def process_list(it, new_dir, bitbucket):
def mount_iso(item, new_dir, bitbucket): #Currently only supports Linux Mount when permissions allow. def mount_iso(item, new_dir, bitbucket): #Currently only supports Linux Mount when permissions allow.
if platform.system() == 'Windows':
logger.error('No mounting options available under Windows for image file {0}'.format(item), 'TRANSCODER')
return []
mount_point = os.path.join(os.path.dirname(os.path.abspath(item)),'temp') mount_point = os.path.join(os.path.dirname(os.path.abspath(item)),'temp')
make_dir(mount_point) make_dir(mount_point)
cmd = ['mount', '-o', 'loop', item, mount_point] cmd = ['mount', '-o', 'loop', item, mount_point]