Merge pull request #3 from ac3d912/master

Fixed some python errors
This commit is contained in:
Cedric Girard 2014-07-03 17:17:07 +02:00
commit a31fd03c4e
1 changed files with 17 additions and 15 deletions

View File

@ -82,8 +82,8 @@ class MakeMkvInteraction:
except IOError:
pass
if proc.poll() :
if proc.proc != 0 :
self.message(_(50070))
if proc.returncode != 0 :
self.log.error("makemkvcon error'd out! May require update. (Return Code: %s)" % proc.returncode)
return -1
xbmc.sleep(1000)
timeSlept = timeSlept + 1
@ -93,6 +93,7 @@ class MakeMkvInteraction:
def killMkv(self):
# Linux
if os.name == 'posix':
try :
self.log.info('attempting linux kill of makemkvcon')
subprocess.call('killall -9 makemkvcon', shell=True)
@ -101,6 +102,7 @@ class MakeMkvInteraction:
pass
#Windows.
if os.name == 'nt':
try :
self.log.info('attempting windows kill of makemkvcon')
subprocess.call('taskkill /F /IM makemkvcon.exe', shell=True)