mirror of
https://github.com/beetbox/beets.git
synced 2026-02-23 07:44:38 +01:00
Bugfix for Album.get_top_tracks workaround.
This commit is contained in:
parent
d339e2f815
commit
fa10515799
1 changed files with 4 additions and 1 deletions
|
|
@ -55,7 +55,10 @@ def _tags_for(obj):
|
|||
not found or another error occurs.
|
||||
"""
|
||||
try:
|
||||
res = super(pylast.Album, obj).get_top_tags()
|
||||
if isinstance(el, pylast.Album):
|
||||
res = super(pylast.Album, obj).get_top_tags()
|
||||
else:
|
||||
res = obj.get_top_tags()
|
||||
except PYLAST_EXCEPTIONS as exc:
|
||||
log.debug(u'last.fm error: %s' % unicode(exc))
|
||||
return []
|
||||
|
|
|
|||
Loading…
Reference in a new issue