summaryrefslogtreecommitdiff
path: root/src/flufigut.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/flufigut.py')
-rwxr-xr-xsrc/flufigut.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/flufigut.py b/src/flufigut.py
index b1e04af..1c0e538 100755
--- a/src/flufigut.py
+++ b/src/flufigut.py
@@ -105,12 +105,13 @@ for format in transcode.keys():
if input['samplerate'] != samplerate:
samplerates.append(samplerate)
for profile in transcode[format]:
- resolution = globals['profiles'][profile]['video']
- if resolution not in resolutions:
- if input['resolution'] != resolution:
- if globals['resolutions'][resolution]['rate'] != globals['resolutions'][input['resolution']]['rate']:
- raise SystemExit("ERROR: video rate conversion is not yet supported!!!")
- resolutions.append(resolution)
+ if 'video' in globals['profiles'][profile]:
+ resolution = globals['profiles'][profile]['video']
+ if resolution not in resolutions:
+ if input['resolution'] != resolution:
+ if globals['resolutions'][resolution]['rate'] != globals['resolutions'][input['resolution']]['rate']:
+ raise SystemExit("ERROR: video rate conversion is not yet supported!!!")
+ resolutions.append(resolution)
for resolution in resolutions:
if 'resize' not in worker: