mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
music.py - remove __getitem__
This commit is contained in:
parent
7ed36ca78a
commit
51ccbfbce0
1 changed files with 0 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue