2023-03-27, 03:40
Thanks, I'll try this!
(2023-03-31, 15:52)khuntim Wrote: Will gapless playback work?For gapless playback see posts #697 and #333
I have an unused Pi 4b board here, need to find a case and quiet cooling solution.
python resources/lib/tidal2/items.py:
def getListItem(self):
li = xbmcgui.ListItem(self.getLabel())
if isinstance(self, tidal.PlayableMedia) and getattr(self, 'available', True):
li.setProperty('isplayable', 'true')
artwork = {'thumb': Const.addon_icon, 'fanart': Const.addon_fanart}
if getattr(self, 'image', None):
artwork['thumb'] = self.image
if getattr(self, 'fanart', None):
artwork['fanart'] = self.fanart
li.setArt(artwork)
# In Favorites View everything as a Favorite
if self._is_logged_in and hasattr(self, '_isFavorite') and '/favorites/' in sys.argv[0]:
self._isFavorite = True
cm = self.getContextMenuItems()
# Add Queue and PlayNext context menu items
if isinstance(self, (tidal.Track, tidal.Video)) and KODI_VERSION >= (20, 0):
cm.append((xbmc.getLocalizedString(13347), 'Action(Queue)'))
cm.append((xbmc.getLocalizedString(10008), 'Action(PlayNext)'))
if len(cm) > 0:
li.addContextMenuItems(cm)
return li