Kodi Community Forum

Full Version: Is it possible to add subtitles to a trailer ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is an attribute to add a trailer to a list_item, for example : 
python:
       
list_item.setInfo('video', {'trailer': 'http://URL_TRAILER.mp4'})
Is it possible to also add a subtitle file to it ?
(2020-06-20, 18:28)Gama41 Wrote: [ -> ]There is an attribute to add a trailer to a list_item, for example : 
python:
       
list_item.setInfo('video', {'trailer': 'http://URL_TRAILER.mp4'})
Is it possible to also add a subtitle file to it ?
Yes if you add the srt subtitle file in the same folder i guess kodi will play it
Thanks for your reply, unfortunately I'm using the trailers available on Youtube so my URLs will look like this :
Code:
plugin://plugin.video.youtube/play/?video_id=$VIDEOID
Is there any way to add subtitles from an online source, please ?
(2020-06-28, 01:26)Gama41 Wrote: [ -> ]Thanks for your reply, unfortunately I'm using the trailers available on Youtube so my URLs will look like this :
Code:
plugin://plugin.video.youtube/play/?video_id=$VIDEOID
Is there any way to add subtitles from an online source, please ?
I don't think trailers subtitles are available online
You can search for youtube trailers which re already subbed because YouTube addon supports subs
You can find more info here https://github.com/Kolifanes/plugin.vide.../issues/40
I am trying to add custom subtitles, not the one available on Youtube.
I have searched in the documentation but I didn't find anything that could help me, it seems that it's not possible yet, but thanks for your help.
(2020-06-28, 01:43)Zombi Wrote: [ -> ]
(2020-06-28, 01:26)Gama41 Wrote: [ -> ]Thanks for your reply, unfortunately I'm using the trailers available on Youtube so my URLs will look like this :
Code:
plugin://plugin.video.youtube/play/?video_id=$VIDEOID
Is there any way to add subtitles from an online source, please ?
I don't think trailers subtitles are available online
You can search for youtube trailers which re already subbed because YouTube addon supports subs
You can find more info here https://github.com/Kolifanes/plugin.vide.../issues/40
Can anyone help with this question about subtitles in trailers?

I can see most of the trailers with Portuguese subtitles using the YouTube add-on (some of them hardcoded in the video).
The problem is that when they are not hardcoded I cant select Portuguese subtitles by default in the youtube addon and I need to select the "wask me" option in the setting so that I can select Portuguese subtitle in a vast list of languages everytime I choose to see a trailer..

But of course that I want that automatically selected. Is there any way?