]> code.delx.au - transcoding/blobdiff - encode.py
Fixed typo in the faac options field name
[transcoding] / encode.py
index 0d6df19df648d86c2d3c02ad5adb88bd661a877d..35a95e42fcdd4dceeec8b84787901af0c390d547 100755 (executable)
--- a/encode.py
+++ b/encode.py
@@ -7,7 +7,7 @@ class MencoderCommand(object):
                "lavc": "-lavcopts",
                "xvid": "-xvidencopts",
                "x264": "-x264encopts",
-               "faac": "-faaccopts",
+               "faac": "-faacopts",
                "mp3lame": "-lameopts",
        }
 
@@ -64,8 +64,12 @@ class MencoderCommand(object):
 
 class Profile(object):
        def __init__(self, CommandClass, **kwargs):
+               self.extra = []
+
                self.CommandClass = CommandClass
                self.__dict__.update(kwargs)
+       def __contains__(self, keyname):
+               return hasattr(self, keyname)
 
 profiles = {
        "qt7" :