willforde / script.module.codequick

Kodi addon framework
GNU General Public License v2.0
33 stars 6 forks source link

SetSubtitles in codequick #8

Closed wwark closed 6 years ago

wwark commented 6 years ago

Hi Willforde,

I work with @SylvainCecchetto. We start to move on the framework codequick. We have a question: how can we set a subtilte in codequick ?

Thank you, Best regards, Wwark.

willforde commented 6 years ago

I didn't directly add support for that but you can still do it by accessing the underlining Kodi listitem.

item = codequick.Listitem()
item.listitem.setSubtitles(['special://temp/example.srt', 'http://example.com/example.srt'])

I hope this answers your question.

wwark commented 6 years ago

Thank you. It answers my question. BR, Wwark

Forage commented 6 years ago

This makes it a bit odd that the subtitle_language can be set, according to the documentation. Could we consider this issue as a feature request instead?

willforde commented 6 years ago

You can now do the following to add subtitles.

item.subtitles.append("http://example.com/example.srt")
Forage commented 6 years ago

Great, many thanks :)