music.py - remove __getitem__

This commit is contained in:
TrueTechy 2019-09-09 01:53:27 +01:00
parent 7ed36ca78a
commit 51ccbfbce0

View file

@ -34,20 +34,6 @@ class Music(KodiDb):
KodiDb.__init__(self, musicdb.cursor)
def __getitem__(self, key):
LOG.debug("__getitem__(%r)", key)
if key in ('MusicArtist', 'AlbumArtist'):
return self.artist
elif key == 'MusicAlbum':
return self.album
elif key == 'Audio':
return self.song
elif key == 'UserData':
return self.userdata
elif key in 'Removed':
return self.remove
@stop()
@jellyfin_item()
@library_check()