2010-08-28, 20:05
I am not sure how to set the subtitles when using setResolveUrl. I know setSubtitles on a playing video works but not sure how to do this right for a list item. Is this even possible or should I make a feature request?
item = xbmcgui.ListItem(epititle, iconImage=sc, thumbnailImage=sc)
item.setInfo(type='video', infoLabels={'title': epititle, 'genre': theme, 'plot': info, 'season': int(snum), 'episode': int(enum), 'aired': tmark, 'tvshowtitle': tvshowtitle})
xbmc.Player().play('http://link-to-video-file', item)
xbmc.Player().setSubtitles('http://link-to-srt-file')
xbmc.Player().play('http://link-to-video-file')
xbmc.Player().setSubtitles('http://link-to-srt-file')