Skip to content

Commit 2ba906c

Browse files
committed
updates
1 parent 8dd3854 commit 2ba906c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mkvisr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def probe_streams(obj):
3131
for o in out:
3232
key, value = o.split("=")
3333
key = key.replace("streams.stream.","")
34-
streams[str(key)] = value
34+
streams[str(key)] = str(value.replace('"','').replace("'",""))
3535
if streams:
3636
count = 0
3737
numberofstreams = []
@@ -99,7 +99,7 @@ def detect_pal(streams):
9999
'''
100100
h = ''
101101
for stream in streams["numberofstreams"]:
102-
if streams[stream + ".codec_type"] == '"video"':
102+
if streams[stream + ".codec_type"] == 'video':
103103
h = streams[stream + ".height"]
104104
if not h:
105105
print "Buddy, we couldn't detect the height of that video"
@@ -121,8 +121,8 @@ def detect_j2k(streams):
121121
i.e. frames are actually fields, 59.94, but we ~want~ 29.97 full-height
122122
'''
123123
for stream in streams["numberofstreams"]:
124-
if streams[stream + ".codec_type"] == '"video"':
125-
if streams[stream + ".codec_name"] == '"jpeg2000"':
124+
if streams[stream + ".codec_type"] == 'video':
125+
if streams[stream + ".codec_name"] == 'jpeg2000':
126126
return True
127127
return False
128128

0 commit comments

Comments
 (0)