Kodi Community Forum
Setting subtitles from within plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: Setting subtitles from within plugin (/showthread.php?tid=80026)



Setting subtitles from within plugin - adammw - 2010-08-31

Hi,
I'm trying to make a plugin which can display subtitles from the internet, however they are in the timed text format. I believe that I can transcode them to SRT on the fly, but I'm not sure how to get XBMC to find them because my media is not local (e.g. it's an RTMP url) and neither is the subtitles.

What would be the best way to do this within a plugin?

Thanks,


- spiff - 2010-08-31

uhrr, yes. see the pydocs.


- BlueCop - 2010-08-31

I think it is currently limited to assigning a subtitle to a player that has already started. I don't think it it currently possible to do this for a listitem feed to adddirectoryitem or setresolveurl. I put in a feature request for this. Maybe I missed something though.


- spiff - 2010-08-31

no, you're correct, the player needs to be running.