From 3757b04e29a46bc3c05ea67f4fac80bd1d58092d Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 5 Sep 2016 21:29:23 +0200 Subject: [PATCH] Fix playing from widgets without direct paths --- resources/lib/player.py | 1 + resources/lib/playlist.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/player.py b/resources/lib/player.py index d9e40caf..0ca87d91 100644 --- a/resources/lib/player.py +++ b/resources/lib/player.py @@ -309,6 +309,7 @@ class Player(xbmc.Player): window('plex_customplaylist', clear=True) window('plex_customplaylist.seektime', clear=True) window('plex_customplaylist.seektime', clear=True) + window('plex_playbackProps', clear=True) log.debug("Cleared playlist properties.") def onPlayBackEnded(self): diff --git a/resources/lib/playlist.py b/resources/lib/playlist.py index 9fcdae2d..98fcd34e 100644 --- a/resources/lib/playlist.py +++ b/resources/lib/playlist.py @@ -252,7 +252,7 @@ class Playlist(): mediatype: Kodi type: 'movie', 'episode', 'musicvideo', 'artist', 'album', 'song', 'genre' """ - self._addtoPlaylist(dbid=None, mediatype=None, url=None) + self._addtoPlaylist(dbid, mediatype, url) def _addtoPlaylist(self, dbid=None, mediatype=None, url=None): pl = {