Beispiel #1
0
def ChangeList(no):
    dialog = xbmcgui.Dialog()
    if isSameList(no):
        if FileUtil.UpdateCheck4TVChannels(GetFileName(no)):
            if dialog.ok("TV채널 업데이트", " ", "채널의 정보가 업데이트 되었습니다."):
                xbmc.executebuiltin('ActivateWindow(TVChannels)')
                time.sleep(1)
                xbmc.executebuiltin("PlayerControl(Stop)")
                time.sleep(1)
                restartPVR()

    else:
        os.system("curl http://lilactv.com/BadJin/Favourites/System/" +
                  GetFileName(no) + " > " + GetPath(no))
        set_settingsxml(no)
        if dialog.ok("TV채널 업데이트 -[Test Version]",
                     "고화질[1080p]로 리스트를 구성합니다. -56채널", " ",
                     "***각 채널의 동작을 보장하지 않습니다.***"):
            xbmc.executebuiltin('ActivateWindow(TVChannels)')
            time.sleep(1)
            xbmc.executebuiltin("PlayerControl(Stop)")
            time.sleep(1)
            restartPVR()
Beispiel #2
0
    if os.path.exists("/storage/.kodi/userdata/addon_data/service.libreelec.settings/oe_settings.xml"):

        #return to homescreen
        xbmc.executebuiltin('ActivateWindow(home)')
        #sleep long enough for the home screen to come up
        time.sleep(1)
        if CheckKoreanChannel():
            os.system("curl http://lilactv.com/BadJin/Favourites/System/"+__m3uFile__+" > "+__m3uPath__)
            set_settingsxml()
            dialog = xbmcgui.Dialog()
            if dialog.ok("TV채널 업데이트","각 채널당 5개씩 링크를 가지는 리스트를 구성합니다. -56채널", " ", "***모든 채널의 온라인 상태를 보장하지 않습니다.***"):
                xbmc.executebuiltin('ActivateWindow(TVChannels)')
                time.sleep(1)
                xbmc.executebuiltin("PlayerControl(Stop)")
                time.sleep(1)
                restartPVR()

        else:
            if FileUtil.UpdateCheck4TVChannels(__m3uFile__):
                dialog = xbmcgui.Dialog()
                if dialog.ok("TV채널 업데이트", " ", "채널의 정보가 업데이트 되었습니다."):
                    xbmc.executebuiltin('ActivateWindow(TVChannels)')
                    time.sleep(1)
                    condition = xbmc.getCondVisibility('Player.HasMedia')
                    if condition:
                        xbmc.executebuiltin("PlayerControl(Stop)")
                        time.sleep(1)

                    restartPVR()