From: kaliko Date: Tue, 9 Dec 2014 18:44:12 +0000 (+0100) Subject: Fixed a stupid missing return X-Git-Tag: 0.13.0~16 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=f206f5e50c1cd9e5d3287c00c740277db485761e;p=mpd-sima.git Fixed a stupid missing return --- 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