Skip to content

Commit

Permalink
Remove player selection; removed in matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Apr 12, 2020
1 parent 82f4219 commit 522dfed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/xbmcswift2/xbmcmixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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]

Expand Down

0 comments on commit 522dfed

Please sign in to comment.