mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 05:01:10 -07:00
convert byte to string from Popen. Fix Sick* failed processing. Fixes #1545
This commit is contained in:
parent
f91f40d643
commit
f47f68f699
4 changed files with 23 additions and 18 deletions
|
@ -95,7 +95,7 @@ def get_video_details(videofile, img=None, bitbucket=None):
|
|||
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
out, err = proc.communicate()
|
||||
result = proc.returncode
|
||||
video_details = json.loads(out)
|
||||
video_details = json.loads(out.decode())
|
||||
except Exception:
|
||||
pass
|
||||
if not video_details:
|
||||
|
@ -109,7 +109,7 @@ def get_video_details(videofile, img=None, bitbucket=None):
|
|||
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
out, err = proc.communicate()
|
||||
result = proc.returncode
|
||||
video_details = json.loads(out)
|
||||
video_details = json.loads(out.decode())
|
||||
except Exception:
|
||||
logger.error('Checking [{0}] has failed'.format(file), 'TRANSCODER')
|
||||
return video_details, result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue