Fix PKC playstate updates for widgets on Krypton

- Fixes #67
This commit is contained in:
tomkat83 2016-06-26 11:53:26 +02:00
parent 62faecb9ce
commit c8311e465a

View file

@ -204,7 +204,7 @@ class KodiMonitor(xbmc.Monitor):
log('Did not get a Kodi id from Kodi, darn', 1) log('Did not get a Kodi id from Kodi, darn', 1)
# For direct paths, if we're not streaming something # For direct paths, if we're not streaming something
# When using Widgets, Kodi doesn't tell us shit so we need this hack # When using Widgets, Kodi doesn't tell us shit so we need this hack
if (kodiid is None and plexid is None and typus in ('movie', 'episode') if (kodiid is None and plexid is None and typus != 'song'
and not currentFile.startswith('http')): and not currentFile.startswith('http')):
try: try:
filename = currentFile.rsplit('/', 1)[1] filename = currentFile.rsplit('/', 1)[1]