[booblyrics] back to get_object, all backends are fillobj-compliant

This commit is contained in:
Julien Veyssier 2013-03-14 16:35:41 +01:00
commit b562a12cb7
4 changed files with 43 additions and 11 deletions

View file

@ -83,15 +83,7 @@ class Booblyrics(ReplApplication):
Display lyrics of the song.
"""
# TODO restore get_object line and handle fillobj
#songlyrics = self.get_object(id, 'get_lyrics')
songlyrics = None
_id, backend = self.parse_id(id)
for _backend, result in self.do('get_lyrics', _id, backends=backend):
if result:
backend = _backend
songlyrics = result
songlyrics = self.get_object(id, 'get_lyrics')
if not songlyrics:
print >>sys.stderr, 'Song lyrics not found: %s' % id
return 3