Change title info on player
#1
Hi.
I want to change the title (like in image below). Here is my code. I don't know what I'm doing wrong. Sad

Image

Code:
def play(finalurl,srt):
          player = xbmc.Player(xbmc.PLAYER_CORE_AUTO)
          player = xbmcgui.ListItem('XBMC Example Title')
          player.setInfo('video', {'Title': 'XBMC Example Title'})
          player.play(finalurl,setinfo,false)
          player.setSubtitles(MainURL + srt)
          addLink('Restart Stream',finalurl,'')


Please help me :S
Sorry for my bad english eheh Smile
Thanks
Reply
#2
PHP Code:
def play(finalurl,srt):
          
player xbmc.Player(xbmc.PLAYER_CORE_AUTO)
          
listitem xbmcgui.ListItem('XBMC Example Title')
          
listitem.setInfo('video', {'Title''XBMC Example Title'})
          
player.play(finalurl,listitem,false)
          
player.setSubtitles(MainURL srt)
          
addLink('Restart Stream',finalurl,''

Watch your var names.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Thank you for your reply, but subtitles only work if I remove this:

Code:
listitem.setInfo('video', {'Title': 'XBMC Example Title'})

How? :S
Reply

Logout Mark Read Team Forum Stats Members Help
Change title info on player0