Commit 80576418 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Fix /v2/lookup?meta=2

parent 983e0ff3
Pipeline #20527 passed with stages
in 3 minutes and 47 seconds
......@@ -517,7 +517,7 @@ class LookupHandler(APIHandler):
def inject_m2(self, meta):
el_recording = self._inject_recording_ids_internal(True)[0]
metadata = lookup_metadata(self.conn, el_recording.keys(), load_releases=True)
metadata = lookup_metadata(self.ctx.db.get_musicbrainz_db(), el_recording.keys(), load_releases=True)
last_recording_id = None
for item in metadata:
if last_recording_id != item['recording_id']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment