mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Quick fix for new playback
This commit is contained in:
parent
b8334e89f2
commit
11e4b3edf9
2 changed files with 3 additions and 1 deletions
|
@ -115,6 +115,8 @@ class PlayUtils():
|
||||||
|
|
||||||
def directPlay(self, result):
|
def directPlay(self, result):
|
||||||
|
|
||||||
|
addon = self.addon
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Item can be played directly
|
# Item can be played directly
|
||||||
playurl = result[u'MediaSources'][0][u'Path']
|
playurl = result[u'MediaSources'][0][u'Path']
|
||||||
|
|
|
@ -58,7 +58,7 @@ class PlaybackUtils():
|
||||||
|
|
||||||
playurl = PlayUtils().getPlayUrl(server, id, result)
|
playurl = PlayUtils().getPlayUrl(server, id, result)
|
||||||
if playurl == False:
|
if playurl == False:
|
||||||
xbmcgui.Dialog().ok('Warning', 'Failed to launch playback.')
|
#xbmcgui.Dialog().ok('Warning', 'Failed to launch playback.')
|
||||||
xbmc.log("Failed to retrieve the playback path/url.")
|
xbmc.log("Failed to retrieve the playback path/url.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue