mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 14:13:33 -07:00
just skip mounting for Windows to prevent errors.
This commit is contained in:
parent
7d617ff35e
commit
c39ebb8e2b
1 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue