]> code.delx.au - transcoding/commitdiff
Added default options for Profiles.extra
authorGreg Darke <greg+asuna@tsukasa.net.au>
Sat, 11 Oct 2008 12:15:10 +0000 (23:15 +1100)
committerGreg Darke <greg+asuna@tsukasa.net.au>
Sat, 11 Oct 2008 12:15:10 +0000 (23:15 +1100)
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" :