]> code.delx.au - transcoding/blobdiff - encode.py
Added default options for Profiles.extra
[transcoding] / encode.py
index 0d6df19df648d86c2d3c02ad5adb88bd661a877d..f9ff177c7333da0f174518ab3f5522fde14420bd 100755 (executable)
--- a/encode.py
+++ b/encode.py
@@ -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" :