示例#1
0
    def _addAlbum(self, **kwargs):
        if 'id' not in kwargs:
            self.data = 'Missing parameter: id'
            return
        else:
            self.id = kwargs['id']

        try:
            importer.addReleaseById(self.id)
        except Exception, e:
            self.data = e
示例#2
0
 def _addAlbum(self, **kwargs):
     if 'id' not in kwargs:
         self.data = 'Missing parameter: id'
         return
     else:
         self.id = kwargs['id']
         
     try:
         importer.addReleaseById(self.id)
     except Exception, e:
         self.data = e
示例#3
0
    def _addAlbum(self, **kwargs):
        if "id" not in kwargs:
            self.data = "Missing parameter: id"
            return
        else:
            self.id = kwargs["id"]

        try:
            importer.addReleaseById(self.id)
        except Exception, e:
            self.data = e