Áreas do Fórum estão disponíveis apenas para membros com registro, cadastre-se ou logue para ter acesso. Forum areas are only available to registered members, register, or log in to gain access.
We move our host, if you have issues registering or logging in to our forum, please report the issue to admin@mediabrasil.tv, thanks. It,s possible to register using a social network (Google, Amazon, Github, or Spotify.) Only need to choose Login with (network name).
Contribua e torne-se membro VIP Plus do Fórum MediaBrasil.tv. International members, donate one single time (U$ 20.00) or subscribe and receive access to unique content, including Aeon MQ 9 (Kodi Omega 21.0, Nexus 20.0, and Matrix 19.5 read our FAQ for more info about how to support us. Help us keep the forum operational.

Doe via pagseguro ou mercado pago (Brazil only) - Doe via Bancos Brasileiros - International Donation - FAQ About Donation

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Problemas Criar TV indoor
#1
Smiley Sad 

Boa noite!
Dúvida de novato! Quero criar uma TV indoor, que alterne entre clima, playlist de imagens e playlist de video.
Com a ajuda do amigo Wanilton (http://www.xbmcbrasil.net/thread-2595.html), fiz algumas alterações que deram certo, mas colocar o video para aparecer não dá certo de jeito nenhum!
Abaixo o código que funciona bem:

Code:
import xbmc
import kodi

monitor = xbmc.Monitor()

def wait(wait_time):
    current_time = 0
    while current_time <= wait_time:
        if not monitor.abortRequested():
            xbmc.sleep(100)
            current_time += 100
        else:
            break
    return

def slide():
    aborted_requested = monitor.abortRequested()
    if not aborted_requested:
        wait(35000)    
        xbmc.executebuiltin('XBMC.ActivateWindow(weather)')
    if not aborted_requested:
        wait(15000)
        xbmc.executebuiltin('xbmc.RecursiveSlideShow("/storage/Torrents/Image/",isdir)')
    if not aborted_requested: return True
    else: return False
    
if __name__ == '__main__':
    while not monitor.abortRequested():
        abort = slide()
        if not abort: break
Quando acrescento as linhas (abaixo do "xbmc.executebuiltin('xbmc.RecursiveSlideShow"), o script para de funcionar:
Code:
if not aborted_requested:
        wait(15000)
        xbmc.executebuiltin('xbmc.PlayMedia("/storage/Torrents/Watch/",isdir)')

Já tentei com ' ', "", sem o isdir e com o arquivo m3u, mas nada!

Obrigado a quem puder me ajudar!
Reply




Users browsing this thread: 1 Guest(s)