Kodi 17 - Subtitles Not Showing

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ddixon1987 Offline
Junior Member
Posts: 5
Joined: Jul 2017
Reputation: 0
Post: #1
I am trying to get a subtitle track to play with a video, but my subtitles are not appearing. This is the srt file:

https://adbience-staging.s3-us-west-2.am...50be3d4b45

My code is as follows:

Code:
player  = ExamplePlayer()

subtitle_file='https://adbience-staging.s3-us-west-2.amazonaws.com/podcast_srt_english_b9e728d9-7953-4ff6-b287-e150be3d4b45'

def downloadSubtitles(subtitlesUrl):
        global player
        
        while not player.isPlaying():
            xbmc.sleep(5) #wait until video is being played
        player.setSubtitles(subtitlesUrl)
        player.showSubtitles(True)
        xbmc.Player().setSubtitles(subtitlesUrl)

player.play(item=file, listitem=items)
downloadSubtitles(subtitle_file)

But the subtitles never show up in the layer. Am i doing something wrong?
(This post was last modified: 2017-08-12 23:16 by ddixon1987.)
find quote