Ejemplo n.º 1
0
 def __delitem__(self, key):
     key = key.lower()
     func = dict_match(self.Delete, key)
     if func is not None:
         return func(self.__mp4, key)
     else:
         raise EasyMP4KeyError("%r is not a valid key" % key)
Ejemplo n.º 2
0
 def __delitem__(self, key):
     key = key.lower()
     func = dict_match(self.Delete, key, self.DeleteFallback)
     if func is not None:
         return func(self.__id3, key)
     else:
         raise EasyID3KeyError("%r is not a valid key" % key)
Ejemplo n.º 3
0
 def __delitem__(self, key):
     key = key.lower()
     func = dict_match(self.Delete, key)
     if func is not None:
         return func(self.__mp4, key)
     else:
         raise EasyMP4KeyError("%r is not a valid key" % key)
Ejemplo n.º 4
0
 def __setitem__(self, key, value):
     key = key.lower()
     if isinstance(value, basestring):
         value = [value]
     func = dict_match(self.Set, key)
     if func is not None:
         return func(self.__mp4, key, value)
     else:
         raise EasyMP4KeyError("%r is not a valid key" % key)
Ejemplo n.º 5
0
 def __setitem__(self, key, value):
     key = key.lower()
     if isinstance(value, basestring):
         value = [value]
     func = dict_match(self.Set, key, self.SetFallback)
     if func is not None:
         return func(self.__id3, key, value)
     else:
         raise EasyID3KeyError("%r is not a valid key" % key)