2016-03-24, 23:26
I am looking at a video plug-in that works Kodi 15 but not in Kodi 16 or 17. The add-on gets a URL via a provider api to an en.srt file then calls its playVideo function:
and Kodi 15 loads the srt file, but in Kodi 16 and 17, it doesn't load and nothing is shown in the log. Tried with suburl being a URL to the sub file, and also tried with a local path/filename, neither seem to do anything. Using the UI to get the local sub file does work.
scott s.
.
Code:
def playVideo(suburl,videoId):
print videoId
vidinfo = videoId.split("_")[0]
xbmcPlayer = xbmc.Player()
xbmcPlayer.play(videoId)
xbmcPlayer.setSubtitles(suburl)
and Kodi 15 loads the srt file, but in Kodi 16 and 17, it doesn't load and nothing is shown in the log. Tried with suburl being a URL to the sub file, and also tried with a local path/filename, neither seem to do anything. Using the UI to get the local sub file does work.
scott s.
.