Switch to side-by-side view

--- a/src/cdplugins/tidal/tidal-app.py
+++ b/src/cdplugins/tidal/tidal-app.py
@@ -134,16 +134,27 @@
 def add_directory(title, endpoint):
     if callable(endpoint):
         endpoint = plugin.url_for(endpoint)
-    xbmcplugin.entries.append(direntry('0$tidal$' + endpoint, xbmcplugin.objid, title))
+    xbmcplugin.entries.append(direntry('0$tidal$' + endpoint,
+                                       xbmcplugin.objid, title))
 
 def urls_from_id(view_func, items):
-    #msgproc.log("urls_from_id: items: %s" % str([item.id for item in items]))
-    return [plugin.url_for(view_func, item.id) for item in items if str(item.id).find('http') != 0]
+    return [plugin.url_for(view_func, item.id)
+            for item in items if str(item.id).find('http') != 0]
 
 def view(data_items, urls, end=True):
     for item, url in zip(data_items, urls):
         title = item.name
-        xbmcplugin.entries.append(direntry('0$tidal$' + url, xbmcplugin.objid, title))
+        try:
+            image = item.image if item.image else None
+        except:
+            image = None
+        try:
+            artnm = item.artist.name if item.artist.name else None
+        except:
+            artnm = None
+        xbmcplugin.entries.append(
+            direntry('0$tidal$' + url, xbmcplugin.objid, title, arturi=image,
+                     artist=artnm))
 
 def track_list(tracks):
     xbmcplugin.entries += trackentries(httphp, pathprefix,
@@ -211,7 +222,8 @@
 
 @plugin.route('/genre/<genre_id>')
 def genre_view(genre_id):
-    add_directory('Playlists', plugin.url_for(genre_playlists, genre_id=genre_id))
+    add_directory('Playlists', plugin.url_for(genre_playlists,
+                                              genre_id=genre_id))
     add_directory('Albums', plugin.url_for(genre_albums, genre_id=genre_id))
     add_directory('Tracks', plugin.url_for(genre_tracks, genre_id=genre_id))
     xbmcplugin.endOfDirectory(plugin.handle)