From f206f5e50c1cd9e5d3287c00c740277db485761e Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 9 Dec 2014 19:44:12 +0100 Subject: [PATCH] Fixed a stupid missing return --- sima/lib/simaecho.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sima/lib/simaecho.py b/sima/lib/simaecho.py index 1ee17fd..147c624 100644 --- a/sima/lib/simaecho.py +++ b/sima/lib/simaecho.py @@ -40,7 +40,7 @@ def get_mbid(obj, foreign='foreign_ids'): if foreign in obj: for frgnid in obj.get(foreign): if frgnid.get('catalog') == 'musicbrainz': - mbid = frgnid.get('foreign_id').split(':')[2] + return frgnid.get('foreign_id').split(':')[2] return None -- 2.39.5