--- a/src/mediaserver/cdplugins/tidal/tidal-app.py
+++ b/src/mediaserver/cdplugins/tidal/tidal-app.py
@@ -390,19 +390,19 @@
# objkind is mandatory and maybe 'artist', 'album', 'playlist', 'track'
# If our caller does not set it, we run multiple searches
- if objkind is None or objkind == 'artist':
+ if not objkind or objkind == 'artist':
searchresults = session.search('artist', value)
view(searchresults.artists,
urls_from_id(artist_view, searchresults.artists), end=False)
- if objkind is None or objkind == 'album':
+ if not objkind or objkind == 'album':
searchresults = session.search('album', value)
view(searchresults.albums,
urls_from_id(album_view, searchresults.albums), end=False)
- if objkind is None or objkind == 'playlist':
+ if not objkind or objkind == 'playlist':
searchresults = session.search('playlist', value)
view(searchresults.playlists,
urls_from_id(playlist_view, searchresults.playlists), end=False)
- if objkind is None or objkind == 'track':
+ if not objkind or objkind == 'track':
searchresults = session.search('track', value)
track_list(searchresults.tracks)
#msgproc.log("%s" % xbmcplugin.entries)