Пример #1
0
def showText(buch,kapitel):
    xbmc.executebuiltin('ActivateWindow(%d)' % 10147)
    window = xbmcgui.Window(10147)
    xbmc.sleep( 100 )
    window.getControl(1).setLabel(buch + ' ' + kapitel)
    text = ''
    verse = hoerBibelCore.getText('NLB',buch,kapitel)
    for i in range(0, len(verse), 1):
        text = text + '[B]'+str(i+1)+'[/B]' + ' ' + verse[i] + '\n'
    window.getControl(5).setText(text)
Пример #2
0
def playAudio(book,chapter):
    link = hoerBibelCore.getAudioLink(book,chapter)
    params = { "url": link }
    listitem = xbmcgui.ListItem(path=link)

    text = ""
    verse = hoerBibelCore.getText('NLB',book,chapter)
    for i in range(0, len(verse), 1):
        text = text + '[B]'+str(i+1)+'[/B]' + ' ' + verse[i] + '\n'

    listitem.setInfo( "music", { "title": book + " " + chapter } )
    listitem.setLabel2(text)

    #showText(book,chapter)
    #xbmc.sleep(500)
    url = xbmcplugin.setResolvedUrl(pluginhandle, True, listitem)
    return url