2019-05-18, 20:57
Hello,
This addon is just amazing thanks for making it !
I have a litte question please.
I would like to add custom subtitles for each part of a Youtube playlist, can you guide me to how to access to all the parts of a playlist before it is played ?
Thanks if you can provide any help it will be nice !
This addon is just amazing thanks for making it !
I have a litte question please.
I would like to add custom subtitles for each part of a Youtube playlist, can you guide me to how to access to all the parts of a playlist before it is played ?
I would like to iterate inside the playlist and add my custom subtitles before playing it like I did for a full video link before, is there any way to do it please ?python:if video['statut'] == 'DT' and video['part'] == '0':
xbmc.log("video['title']"+ video['link'])
title_no_space = video['title'].replace(" ", "%20")
subtitles = domain+video['langue'].lower()+'/'+title_no_space+'.srt'
list_item.setSubtitles([subtitles])
url = "plugin://plugin.video.youtube/play/?video_id="+video['link']
elif video['statut'] == 'DT' and video['part'] == '1' :
url = "plugin://plugin.video.youtube/play/?playlist_id="+video['pl_link']
Thanks if you can provide any help it will be nice !