2016-10-03, 15:33
(2016-07-09, 23:07)Hwesta Wrote: is the source code repo available? The link from http://kodi.wiki/view/Add-on:SoundCloud to https://github.com/bromix/plugin.audio.soundcloud gives a 404, and I'd be interested in adding support if it was available.
Same problem here.
I found a way to always show fullscreen music viz on playback and wanted to submit a pull request, but the Github repo is gone.
So I'm posting my solution here:
always show fullscreen music viz on playback:
File: plugin.audio.soundcloud/resources/lib/nightcrawler/core/kodi/kodi_items.py
- add new import statement at the top: Code:
import xbmc
- in method process_item: after the line add the following line:Code:
xbmcplugin.setResolvedUrl(context.get_handle(), succeeded=True, listitem=kodi_item)
so the whole method looks like:Code:xbmc.executebuiltin('ActivateWindow(Visualisation)')
Code:def process_item(context, item, resolve=False):
kodi_item = create_kodi_item(context, item)
if item['type'] == 'uri' or resolve:
xbmcplugin.setResolvedUrl(context.get_handle(), succeeded=True, listitem=kodi_item)
xbmc.executebuiltin('ActivateWindow(Visualisation)')
pass
else:
if not xbmcplugin.addDirectoryItem(handle=context.get_handle(), url=item['uri'], listitem=kodi_item,
isFolder=(item['type'] == 'folder')):
raise ProviderException('Failed to add folder item')
pass
pass
Every time you start playing a Soundcloud track you don't have to press the "fullscreen" shortcut (default: TAB) to view the fullscreen music viz. This was getting really annoying, expecially when using external tools like "Yatse" (Android app) or "Play to Kodi" (Chrome addon).
Maybe someone can add a settings entry for this making the behavior toggleable...