示例#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)
示例#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)
示例#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)
示例#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)
示例#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)