--- /dev/null
+# Show Song Artist Context Menu (https://git.hcoop.net/?p=clinton/unknownlamer-kodi-addons.git)
+
+# Copyright (c) 2015 Clinton Ebadi <clinton@unknownlamer.org>
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+import sys
+import xbmc
+import json
+
+def main ():
+ artist = sys.listitem.getMusicInfoTag().getArtist()
+ artistid = json.loads (xbmc.executeJSONRPC (json.dumps ({ 'jsonrpc': '2.0',
+ 'id': '1',
+ 'method': 'AudioLibrary.GetArtists',
+ 'params': { 'filter': { 'field': 'artist',
+ 'operator': 'is',
+ 'value' : artist }}})))['result']['artists'][0]['artistid']
+ xbmc.executebuiltin ('ActivateWindow (Music,musicdb://artists/%s/)' % artistid)
+
+if __name__ == '__main__':
+ main ()
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<addon id="context.item.songartist" name="Show Artist" version="0.0"
+ provider-name="unknown_lamer">
+ <requires>
+ <import addon="xbmc.python" version="2.20.0"/>
+ </requires>
+
+ <extension point="kodi.context.item" library="addon.py">
+ <item>
+ <label>Show Artist Albums</label>
+ <visible>!IsEmpty(ListItem.Artist)</visible>
+ </item>
+ </extension>
+
+ <extension point="kodi.addon.metadata">
+ <platform>all</platform>
+ <summary lang="en">Show albums for song's artist</summary>
+ <description lang="en">Show albums for song's artist</description>
+ <license>GPLv3 or later</license>
+ <source>https://git.hcoop.net/?p=clinton/unknownlamer-kodi-addons.git</source>
+ </extension>
+</addon>