Jesus:
Como estas? Ya tengo casi listo para agregar las series a la biblioteca.
+ Me agrega los episodios a la biblioteca con los nombres correspondiente (le puse que adelante del nombre de cada episodio le ponga S01E03 por ejemplo para que detecte bien cada episodio)
+ Me los reproduce correctamente
+ Me baja los subtitulos correctamente
Pero no puedo hacer que me muestre los subtitulos,
Llamo a xbmctools.playvideo(CHANNELNAME,server,scrapedurl,"Series",scrapedtitle,item.thumbnail,item.plot,strmfile=True,subtitle=suburl)
en el log veo:
11:00:41 T:2564 M:824295424 NOTICE: [xbmctools.py] playvideo
11:00:41 T:2564 M:824295424 NOTICE: [xbmctools.py] playvideo canal=cuevana
11:00:41 T:2564 M:824295424 NOTICE: [xbmctools.py] playvideo server=megaupload
11:00:41 T:2564 M:824295424 NOTICE: [xbmctools.py] playvideo url=U6ZAOLBY
11:00:41 T:2564 M:824295424 NOTICE: [xbmctools.py] playvideo category=Series
11:00:41 T:2564 M:824295424 NOTICE: [xbmctools.py] playvideo serie=
11:00:41 T:2564 M:824295424 NOTICE: [xbmctools.py] playvideo subtitle=true
http://www.cuevana.tv/files/s/sub/1593_ES.srt
11:00:41 T:2564 M:824295424 NOTICE: default_action=2
11:00:41 T:2564 M:824266752 NOTICE: Ver en calidad alta [megaupload]
11:00:41 T:2564 M:824266752 NOTICE: Ver en calidad baja [megavideo]
11:00:41 T:2564 M:824262656 NOTICE: [descargados.py] init
11:00:41 T:2564 M:824262656 NOTICE: Descargar
11:00:41 T:2564 M:824262656 NOTICE: seleccion=0
11:00:41 T:2564 M:824262656 NOTICE: seleccion=Ver en calidad alta [megaupload]
11:00:41 T:2564 M:824242176 NOTICE: [megavideo.py] Cookiefile=C:\Program Files\XBMC\portable_data\userdata\addon_data\plugin.video.pelisalacarta\cookies.lwp
11:00:50 T:2564 M:824492032 NOTICE: getmegauploadvideo0
11:00:53 T:2564 M:824438784 NOTICE: [scrapertools.py] 0
http://www606.megaupload.com/files/9554 ... 24-301.mp4
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py] mediaurl=
http://www606.megaupload.com/files/9554 ... 24-301.mp4
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py] 1
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py] playlist OBTENCIÓN DE DATOS DE BIBLIOTECA
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py]getMediaInfo: label = S3E1 Day 3 0100 PM - 0200...
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py]getMediaInfo: label2 = 247 B
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py]getMediaInfo: iconImage = special://masterprofile/Thumbnails/Video/9/9fe431e6.tbn
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py]getMediaInfo: thumbnailImage = special://masterprofile/Thumbnails/Video/9/9fe431e6.tbn
11:00:58 T:2564 M:824709120 NOTICE: [xbmctools.py] 3
11:00:58 T:2564 M:824705024 NOTICE: Con subtitulos C:\Program Files\XBMC\portable_data\userdata\addon_data\plugin.video.pelisalacarta\subtitulo.srt
11:00:58 T:2564 M:824643584 NOTICE: [cuevana.py] strm_detail fin
Me fijo en C:\Program Files\XBMC\portable_data\userdata\addon_data\plugin.video.pelisalacarta\subtitulo.srt y el subtitulo existe y es el que corresponde pero como que cuando estoy en modo biblioteca no lo selecciona el subtitulo.
Algun tip de por donde puedo mirar? Lo unico raro que vi fue que tuve que en el xbmctools.py en la funcion de renderItems agregar un 'if itemlist <> None:' al principio porque sino tira un error al reproducir, que no se si tiene algo que ver. Esta funcion renderItems la llama despues de que termina la funcion strm_detail. No se bien quien llama renderItems y porque itemlist le llega vacio.
def renderItems(itemlist, params, url, category,isPlayable='false'):
if itemlist <> None:
for item in itemlist:
if item.category == "":
item.category = category
if item.folder :
if len(item.extra)>0:
addnewfolderextra( item.channel , item.action , item.category , item.title , item.url , item.thumbnail , item.plot , extradata = item.extra , totalItems = item.totalItems, fanart=item.fanart , context=item.context )
else:
addnewfolder( item.channel , item.action , item.category , item.title , item.url , item.thumbnail , item.plot , totalItems = item.totalItems , fanart = item.fanart, context = item.context )
else:
if item.duration:
addnewvideo( item.channel , item.action , item.category , item.server, item.title , item.url , item.thumbnail , item.plot , "" , item.duration , IsPlayable=isPlayable,context = item.context , subtitle=item.subtitle, totalItems = item.totalItems )
else:
addnewvideo( item.channel , item.action , item.category , item.server, item.title , item.url , item.thumbnail , item.plot, IsPlayable=isPlayable , context = item.context , subtitle = item.subtitle , totalItems = item.totalItems )
# Cierra el directorio
xbmcplugin.setContent(pluginhandle,"Movies")
xbmcplugin.setPluginCategory( handle=pluginhandle, category=category )
xbmcplugin.addSortMethod( handle=pluginhandle, sortMethod=xbmcplugin.SORT_METHOD_NONE )
xbmcplugin.endOfDirectory( handle=pluginhandle, succeeded=True )
Gracias.