From 522dfed8180b786cc379a6ee0fc275d3163e0fee Mon Sep 17 00:00:00 2001 From: enen92 <92enen@gmail.com> Date: Sun, 12 Apr 2020 13:34:56 +0100 Subject: [PATCH] Remove player selection; removed in matrix --- lib/xbmcswift2/xbmcmixin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/xbmcswift2/xbmcmixin.py b/lib/xbmcswift2/xbmcmixin.py index d80615d..47f553c 100644 --- a/lib/xbmcswift2/xbmcmixin.py +++ b/lib/xbmcswift2/xbmcmixin.py @@ -363,7 +363,7 @@ def set_resolved_url(self, item=None, subtitles=None): self._add_subtitles(subtitles) return [item] - def play_video(self, item, player=None): + def play_video(self, item): try: # videos are always type video item['info_type'] = 'video' @@ -372,10 +372,7 @@ def play_video(self, item, player=None): item = self._listitemify(item) item.set_played(True) - if player: - _player = xbmc.Player(player) - else: - _player = xbmc.Player() + _player = xbmc.Player() _player.play(item.get_path(), item.as_xbmc_listitem()) return [item]