]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed a stupid missing return
authorkaliko <kaliko@azylum.org>
Tue, 9 Dec 2014 18:44:12 +0000 (19:44 +0100)
committerkaliko <kaliko@azylum.org>
Tue, 9 Dec 2014 18:46:24 +0000 (19:46 +0100)
sima/lib/simaecho.py

index 1ee17fd6e2dbdd60decbf1c4a95c36dc8eaa952d..147c624578f74de13f44ef54dd20d6d07ce10861 100644 (file)
@@ -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