Search returned multiple artists. Click the artist you want to add:
''')
- for result in artistResults:
- page.append('''
%s (more info)
''' % (result['id'], result['uniquename'], result['id']))
- page.append('''
''')
- return page
- else:
- for result in artistResults:
- logger.info(u"Found one artist matching your search term: " + result['name'] +" ("+ result['id']+")")
- raise cherrypy.HTTPRedirect("addArtist?artistid=%s" % result['id'])
+ searchresults = mb.findRelease(name, limit=10)
findArtist.exposed = True
@@ -164,8 +149,7 @@ class WebInterface(object):
deleteArtist.exposed = True
def refreshArtist(self, ArtistID):
- import importer
- importer.addArtisttoDB(artistid)
+ importer.addArtisttoDB(ArtistID)
refreshArtist.exposed=True
def markAlbums(self, ArtistID=None, action=None, **args):
@@ -175,7 +159,6 @@ class WebInterface(object):
newValueDict = {'Status': action}
myDB.upsert("albums", newValueDict, controlValueDict)
if action == 'Wanted':
- import searcher
searcher.searchNZB(mbid, new=False)
raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID)
markAlbums.exposed = True
@@ -187,7 +170,6 @@ class WebInterface(object):
controlValueDict = {'AlbumID': AlbumID}
newValueDict = {'Status': 'Wanted'}
myDB.upsert("albums", newValueDict, controlValueDict)
- import searcher
searcher.searchNZB(AlbumID, new)
raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID)
queueAlbum.exposed = True