Commits

Adam Lindsay committed 24b3ec8

Added album metadata to track multiquery

  • Participants
  • Parent commits 795c4cb

Comments (0)

Files changed (1)

File spotimeta/resolver.py

                 clist = list()
                 for alb in candlist[:self.candidates]:
                     r = self.lookup(alb['href'], detail=1)['result']['tracks']
+                    albdict = {'name': alb['name'], 'href': alb['href']}
                     for t in r:
                         t['score'] = alb['score']
+                        t['album'] = albdict
                     clist.extend(r)
                 candlist = self.score(track, clist)
             else: