File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def probe_streams(obj):
31
31
for o in out :
32
32
key , value = o .split ("=" )
33
33
key = key .replace ("streams.stream." ,"" )
34
- streams [str (key )] = value
34
+ streams [str (key )] = str ( value . replace ( '"' , '' ). replace ( "'" , "" ))
35
35
if streams :
36
36
count = 0
37
37
numberofstreams = []
@@ -99,7 +99,7 @@ def detect_pal(streams):
99
99
'''
100
100
h = ''
101
101
for stream in streams ["numberofstreams" ]:
102
- if streams [stream + ".codec_type" ] == '" video" ' :
102
+ if streams [stream + ".codec_type" ] == 'video' :
103
103
h = streams [stream + ".height" ]
104
104
if not h :
105
105
print "Buddy, we couldn't detect the height of that video"
@@ -121,8 +121,8 @@ def detect_j2k(streams):
121
121
i.e. frames are actually fields, 59.94, but we ~want~ 29.97 full-height
122
122
'''
123
123
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' :
126
126
return True
127
127
return False
128
128
You can’t perform that action at this time.
0 commit comments